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

Commit 36d67c9

Browse files
committed
trying to wait with jasmmine.clock
1 parent 1c26408 commit 36d67c9

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

spec/linter-julia-spec.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as path from 'path';
44
import {
55
// eslint-disable-next-line no-unused-vars
6-
it, fit, wait, beforeEach, afterEach, beforeAll,
6+
it, fit, wait, beforeEach, afterEach,
77
} from 'jasmine-fix';
88

99
const { lint } = require('../lib/index.js').provideLinter();
@@ -16,15 +16,13 @@ jasmine.getEnv().defaultTimeoutInterval = 180 * 1000;
1616

1717
describe('The Julia StaticLint.jl provider for Linter', () => {
1818
beforeEach(async () => {
19-
atom.workspace.destroyActivePaneItem();
19+
// try to avoid initial symbol step empty message
2020
await atom.packages.activatePackage('linter-julia');
21-
});
22-
23-
// avoid first pass empty messages by linting any files in the environment, then
24-
// waiting for the symbols to build
25-
beforeAll((done) => {
26-
atom.workspace.open(badFile);
27-
setTimeout(done, 15000);
21+
await atom.workspace.open(badFile);
22+
jasmine.clock.install();
23+
jasmine.clock.tick(15000);
24+
jasmine.clock.uninstall();
25+
atom.workspace.destroyActivePaneItem();
2826
});
2927

3028
it('checks a file with syntax error and reports the correct message', async () => {

0 commit comments

Comments
 (0)