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

Improve Atom's startup time #87

Merged
merged 2 commits into from
Nov 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"engines": {
"atom": ">=1.4.0 <2.0.0"
},
"activationHooks": ["language-shellscript:grammar-used"],
"scripts": {
"test": "apm test",
"lint": "eslint ."
Expand Down
13 changes: 10 additions & 3 deletions spec/linter-shellcheck-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ describe('The ShellCheck provider for Linter', () => {
beforeEach(() => {
atom.workspace.destroyActivePaneItem();

// Info about this beforeEach() implementation:
// https://github.com/AtomLinter/Meta/issues/15
const activationPromise =
atom.packages.activatePackage('linter-shellcheck');

waitsForPromise(() =>
Promise.all([
atom.packages.activatePackage('linter-shellcheck'),
])
atom.packages.activatePackage('language-shellscript').then(() =>
atom.workspace.open(cleanPath))
);

atom.packages.triggerDeferredActivationHooks();
waitsForPromise(() => activationPromise);
});

it('finds nothing wrong with a valid file', () => {
Expand Down