Skip to content
This repository was archived by the owner on Mar 30, 2021. It is now read-only.

Commit 7eff49c

Browse files
committed
Increases timeout for installing npm package test
and changes package name
1 parent b717eeb commit 7eff49c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

__tests__/app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe("generator-biojs-webcomponents:app - Upgrade an existing component by i
128128
.directoryName("component-dist")
129129
.then(() => assert.file(["test-component/component-dist"]));
130130
});
131-
it("imports the build file", async () => {
131+
it("imports the build file locally", async () => {
132132
await validators
133133
.importBuildFileLocally(
134134
path.join(__dirname, "../generators/app/validator.js")
@@ -159,8 +159,9 @@ describe("generator-biojs-webcomponents:app - Upgrade an existing component by i
159159

160160
describe("generator-biojs-webcomponents:app - Upgrade an existing component by installing component from npm package", () => {
161161
it("installs the latest component from its npm package if user enters a valid version", async () => {
162+
jest.setTimeout(10000); // Increases timeout for this test
162163
let res = await validators.checkVersionAndInstallComponent("latest", {
163-
packageNameToInstallComponent: "http-server"
164+
packageNameToInstallComponent: "is-odd"
164165
});
165166
assert.equal(res, true);
166167
});

0 commit comments

Comments
 (0)