Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 72e9a52

Browse files
committed
don't return when no return expected
1 parent f3c5de6 commit 72e9a52

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/snippet-loading-spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ describe("Snippet Loading", () => {
2020

2121
afterEach(() => {
2222
waitsForPromise(() => Promise.resolve(atom.packages.deactivatePackages('snippets')));
23-
runs(() => jasmine.unspy(atom.packages, 'getLoadedPackages'));
23+
runs(() => {
24+
jasmine.unspy(atom.packages, 'getLoadedPackages');
25+
});
2426
});
2527

2628
const activateSnippetsPackage = () => {
@@ -169,7 +171,9 @@ describe("Snippet Loading", () => {
169171
return snippet && snippet.body === 'bar2';
170172
});
171173

172-
runs(() => fs.writeFileSync(path.join(configDirPath, 'snippets.json'), ""));
174+
runs(() => {
175+
fs.writeFileSync(path.join(configDirPath, 'snippets.json'), "");
176+
});
173177

174178
waitsFor("snippets to be removed", () => !snippetsService.snippetsForScopes(['.foo'])['foo']);
175179
});

0 commit comments

Comments
 (0)