This repository was archived by the owner on Aug 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,14 @@ jasmine.getEnv().defaultTimeoutInterval = 180 * 1000;
16
16
17
17
describe ( 'The Julia StaticLint.jl provider for Linter' , ( ) => {
18
18
beforeEach ( async ( ) => {
19
- // try to avoid initial symbol step empty message
20
- await atom . packages . activatePackage ( 'linter-julia' ) ;
21
- await atom . workspace . open ( badFile ) ;
22
- jasmine . clock ( ) . install ( ) ;
23
- jasmine . clock ( ) . tick ( 15000 ) ;
24
- jasmine . clock ( ) . uninstall ( ) ;
25
19
atom . workspace . destroyActivePaneItem ( ) ;
20
+ await atom . packages . activatePackage ( 'linter-julia' ) ;
26
21
} ) ;
27
22
28
23
it ( 'checks a file with syntax error and reports the correct message' , async ( ) => {
29
24
const excerpt = 'Missing reference' ;
25
+ await atom . workspace . open ( badFile ) ;
26
+ await wait ( 15000 ) ;
30
27
const editor = await atom . workspace . open ( badFile ) ;
31
28
const messages = await lint ( editor ) ;
32
29
@@ -38,6 +35,8 @@ describe('The Julia StaticLint.jl provider for Linter', () => {
38
35
} ) ;
39
36
40
37
it ( 'finds nothing wrong with a valid file' , async ( ) => {
38
+ await atom . workspace . open ( goodFile ) ;
39
+ await wait ( 15000 ) ;
41
40
const editor = await atom . workspace . open ( goodFile ) ;
42
41
const messages = await lint ( editor ) ;
43
42
expect ( messages . length ) . toBe ( 0 ) ;
You can’t perform that action at this time.
0 commit comments