hexo-fs: Fix lint

This commit is contained in:
Andy Hanson 2017-12-18 12:13:04 -08:00
parent 571e108a79
commit 4fcb01df97

View File

@ -595,7 +595,7 @@ it('emptyDir() - callback', callback => {
join('folder', 'i.js')
]);
Promise.map([
const dataArray: Array<[string, boolean]> = [
[join(target, '.hidden', 'a.txt'), true],
[join(target, '.hidden', 'b.js'), true],
[join(target, '.hidden', 'c', 'd'), true],
@ -605,7 +605,8 @@ it('emptyDir() - callback', callback => {
[join(target, 'folder', 'h.txt'), false],
[join(target, 'folder', 'i.js'), false],
[join(target, 'folder', '.j'), true]
] as Array<[string, boolean]>, data => {
];
Promise.map(dataArray, data => {
return fs.exists(data[0]).then(exist => {
exist.should.eql(data[1]);
});