Co-Authored-By: Antonio Scandurra <as-cii@github.com>
This commit is contained in:
Jason Rudolph
2019-06-13 11:45:24 -04:00
parent 9fa32c7c22
commit d03d2772b5

View File

@@ -1047,7 +1047,7 @@ describe('Project', () => {
let checkCallback = () => {};
beforeEach(() => {
events = []
events = [];
sub = atom.project.onDidChangeFiles(incoming => {
events.push(...incoming);
checkCallback();
@@ -1065,7 +1065,7 @@ describe('Project', () => {
remaining.delete(event.path);
}
if (remaining.size === 0) {
clearTimeout(expireTimeoutId)
clearTimeout(expireTimeoutId);
resolve();
}
};
@@ -1102,7 +1102,7 @@ describe('Project', () => {
fs.writeFileSync(fileTwo, 'two\n');
fs.writeFileSync(fileOne, 'one\n');
await waitForEvents([fileOne, fileTwo]);
expect(events.some(event => event.path === fileThree)).toBeFalsy()
expect(events.some(event => event.path === fileThree)).toBeFalsy();
});
});