Skip to content

Commit

Permalink
test: fix the promises in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed May 25, 2021
1 parent 25f1655 commit b993d93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/benchmark-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("Benchmark", () => {

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

// Activate the package
measure("Activation Time", async function activationBenchmark() {
Expand Down
2 changes: 1 addition & 1 deletion spec/main-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("tests", () => {
await atom.packages.activatePackage("ide-d")
})

it("Installation", async function () {
it("Installation", function () {
expect(atom.packages.isPackageLoaded("ide-d")).toBeTruthy()
const allDeps = atom.packages.getAvailablePackageNames()
expect(allDeps.includes("atom-ide-base")).toBeTruthy()
Expand Down

0 comments on commit b993d93

Please sign in to comment.