File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments