Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 49dfd36

Browse files
committed
trying with wait from jasmine-fix
1 parent 3884222 commit 49dfd36

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

spec/linter-julia-spec.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@ jasmine.getEnv().defaultTimeoutInterval = 180 * 1000;
1616

1717
describe('The Julia StaticLint.jl provider for Linter', () => {
1818
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();
2519
atom.workspace.destroyActivePaneItem();
20+
await atom.packages.activatePackage('linter-julia');
2621
});
2722

2823
it('checks a file with syntax error and reports the correct message', async () => {
2924
const excerpt = 'Missing reference';
25+
await atom.workspace.open(badFile);
26+
await wait(15000);
3027
const editor = await atom.workspace.open(badFile);
3128
const messages = await lint(editor);
3229

@@ -38,6 +35,8 @@ describe('The Julia StaticLint.jl provider for Linter', () => {
3835
});
3936

4037
it('finds nothing wrong with a valid file', async () => {
38+
await atom.workspace.open(goodFile);
39+
await wait(15000);
4140
const editor = await atom.workspace.open(goodFile);
4241
const messages = await lint(editor);
4342
expect(messages.length).toBe(0);

0 commit comments

Comments
 (0)