Skip to content

Commit b993d93

Browse files
committed
test: fix the promises in the tests
1 parent 25f1655 commit b993d93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/benchmark-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe("Benchmark", () => {
88

99
// For benchmark, activate the deps manually before loading the actual package:
1010
const deps = []
11-
deps.forEach(async (p) => await atom.packages.activatePackage(p))
11+
await Promise.all(deps.map((p) => atom.packages.activatePackage(p)))
1212

1313
// Activate the package
1414
measure("Activation Time", async function activationBenchmark() {

spec/main-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe("tests", () => {
1212
await atom.packages.activatePackage("ide-d")
1313
})
1414

15-
it("Installation", async function () {
15+
it("Installation", function () {
1616
expect(atom.packages.isPackageLoaded("ide-d")).toBeTruthy()
1717
const allDeps = atom.packages.getAvailablePackageNames()
1818
expect(allDeps.includes("atom-ide-base")).toBeTruthy()

0 commit comments

Comments
 (0)