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

Commit 8c99311

Browse files
committed
Properly activate the package in specs
Before there was a race condition as to whether the package was activating properly or not.
1 parent cfd5f59 commit 8c99311

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

spec/linter-csslint-spec.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ describe('The csslint provider for Linter', () => {
1414

1515
beforeEach(() => {
1616
atom.workspace.destroyActivePaneItem();
17-
waitsForPromise(() => {
18-
atom.packages.activatePackage('linter-csslint');
19-
return atom.packages.activatePackage('language-css').then(() =>
17+
waitsForPromise(() =>
18+
Promise.all([
19+
atom.packages.activatePackage('linter-csslint'),
20+
atom.packages.activatePackage('language-css'),
21+
]).then(() =>
2022
atom.workspace.open(goodPath)
21-
);
22-
});
23+
)
24+
);
2325
});
2426

2527
describe('checks bad.css and', () => {

0 commit comments

Comments
 (0)