Skip to content

Commit

Permalink
remove(defined): deprecate in favor of isUndefined
Browse files Browse the repository at this point in the history
See: #89 #87
  • Loading branch information
mgred committed Feb 28, 2019
1 parent 28a2705 commit f49dfd9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 82 deletions.
16 changes: 0 additions & 16 deletions lib/assertions/defined.js

This file was deleted.

63 changes: 0 additions & 63 deletions lib/assertions/defined.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/expect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ describe("expect", function() {
expect({}).not.toBeRegExp();
expect(new Date()).toBeDate();
expect({}).not.toBeDate();
expect(null).toBeDefined();
expect(undefined).not.toBeDefined();
expect(undefined).toBeUndefined();
expect(null).not.toBeUndefined();
expect(null).toBeNull();
Expand Down
1 change: 0 additions & 1 deletion lib/referee.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ referee.match = require("@sinonjs/samsam").createMatcher;
referee.setFormatter = require("./format").setFormatter;

// add all all the built-in assertions to the API
require("./assertions/defined")(referee);
require("./assertions/class-name")(referee);
require("./assertions/contains")(referee);
require("./assertions/equals")(referee);
Expand Down

0 comments on commit f49dfd9

Please sign in to comment.