Skip to content

Commit

Permalink
update test (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip authored Jan 3, 2018
1 parent dae7d71 commit 30f74f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/electrode-cookies/test/spec/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe("cookies", function() {
expect(c, `No cookie found with name "${data.name}"`).to.exist;
if (data.hasOwnProperty("maxAge")) {
const expires = data.maxAge > 0 ? response.body.now + data.maxAge * 1000 : 0;
expect(c.expires.toGMTString()).to.equal(new Date(expires).toGMTString());
expect(Math.abs(c.expires.getTime() - expires) < 5, "Cookie expires should match");
delete c.expires;
}
expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe("npmInstall", function() {
.then(() => {
expect(error).to.exist;
expect(error.code).to.equal(1);
expect(error.output.stderr).includes(`'npm' is not in the npm registry.`);
expect(error.output.stderr).includes(`npm ERR! 404 Not Found`);
});
});
});

0 comments on commit 30f74f8

Please sign in to comment.