Skip to content

Commit

Permalink
use jest matchers in wonky test because assert is exasperating
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Stockman committed Mar 4, 2017
1 parent 06679ea commit 3ede09b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ImportCommand.test.js
Expand Up @@ -137,9 +137,9 @@ describe("ImportCommand", () => {
importCommand.runPreparations();

importCommand.runCommand(exitWithCode(1, (err) => {
assert.ok(err, "error object missing");
assert.ok(err.message.search(packageJson) > -1, "path to package.json missing in error message");
assert.equal(err.code, "MODULE_NOT_FOUND");
expect(err).toBeDefined();
expect(err.message).toMatch("package.json");
expect(err.code).toBe("MODULE_NOT_FOUND");
done();
}));
});
Expand Down

0 comments on commit 3ede09b

Please sign in to comment.