Skip to content

Commit

Permalink
update test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Jul 31, 2018
1 parent 3d2cba7 commit f605faa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ignite-core/test/spec/util/check-module.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ const electrodeServer = require("electrode-server");
describe("check-module", function() {
this.timeout(10000);
describe("globalInstalled", function() {
it("should find version of npm", () => {
it("should find version of globally installed npm", () => {
// can't determine npm version with npm ls on windows
const name = process.platform === "win32" ? "" : "npm";
return checkModule.globalInstalled(name).then(version => {
expect(version).to.be.not.empty;
expect(version).to.not.equal("0.0.0");
});
});
}).timeout(20000);

it("should handle error with {} output", () => {
const exec = sinon.stub(xsh, "exec").callsFake(() => {
Expand Down Expand Up @@ -57,12 +57,12 @@ describe("check-module", function() {
});

describe("latest", function() {
it("should find version of npm", () => {
it("should find version of latest npm on registry", () => {
return checkModule.latest("npm").then(version => {
expect(version).to.be.not.empty;
expect(version).to.not.equal("0.0.0");
});
});
}).timeout(20000);

it("should find version of npm with passed in reg", () => {
return checkModule.latest("npm", "https://registry.npmjs.org").then(version => {
Expand Down

0 comments on commit f605faa

Please sign in to comment.