Skip to content

Commit 7b7baa1

Browse files
committed
fix: deps installation
1 parent 2a0b1cd commit 7b7baa1

File tree

3 files changed

+34
-6
lines changed

3 files changed

+34
-6
lines changed

spec/benchmark-spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ describe("Benchmark", () => {
88

99
// For benchmark, activate the deps manually before loading the actual package:
1010
const deps = [
11+
"atom-ide-markdown-service",
1112
"atom-ide-datatip",
1213
"atom-ide-signature-help",
1314
"atom-ide-hyperclick",
1415
"atom-ide-definitions",
1516
"atom-ide-outline",
1617
"linter",
17-
"intentions",
18-
"atom-typescript",
19-
"linter-eslint",
18+
"linter-ui-default",
19+
"intentions"
2020
];
2121
deps.forEach(async (p) => await atom.packages.activatePackage(p));
2222

spec/main-spec.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
describe("tests", () => {
2+
3+
const deps = [
4+
"atom-ide-markdown-service",
5+
"atom-ide-datatip",
6+
"atom-ide-signature-help",
7+
"atom-ide-hyperclick",
8+
"atom-ide-definitions",
9+
"atom-ide-outline",
10+
"linter",
11+
"linter-ui-default",
12+
"intentions"
13+
];
14+
215
beforeEach(async () => {
316
jasmine.attachToDOM(atom.views.getView(atom.workspace));
417

@@ -10,9 +23,25 @@ describe("tests", () => {
1023

1124
// Activate the package
1225
await atom.packages.activatePackage("atom-ide");
26+
27+
28+
});
29+
30+
it("Installation", async function () {
31+
expect(atom.packages.isPackageLoaded("atom-ide")).toBeTruthy();
32+
const allDeps = atom.packages.getAvailablePackageNames()
33+
deps.forEach(dep => {
34+
expect(allDeps.includes(dep)).toBeTruthy()
35+
});
36+
1337
});
1438

1539
it("Activation", async function () {
1640
expect(atom.packages.isPackageLoaded("atom-ide")).toBeTruthy();
41+
deps.forEach(async dep => {
42+
await atom.packages.activatePackage(dep);
43+
expect(atom.packages.isPackageLoaded(dep)).toBeTruthy()
44+
});
45+
1746
});
1847
});

src/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ async function package_deps() {
2929
"atom-ide-definitions",
3030
"atom-ide-outline",
3131
"linter",
32-
"intentions",
33-
"atom-typescript",
34-
"linter-eslint",
32+
"linter-ui-default",
33+
"intentions"
3534
];
3635
if (deps.some((p) => !atom.packages.isPackageLoaded(p))) {
3736
await import("atom-package-deps").then(({install}) => {

0 commit comments

Comments
 (0)