Migrate all remaining fixtures to jest expect

This commit is contained in:
Deven Bansod
2018-03-24 14:44:56 +05:30
parent db42a5d70f
commit c8d82d6483
265 changed files with 1763 additions and 1801 deletions

View File

@@ -3,8 +3,8 @@ foo[Symbol.hasInstance]= function () { return true; };
var bar = {};
assert.ok(bar instanceof foo);
assert.ok(new String instanceof String);
expect(bar instanceof foo).toBe(true);
expect(new String instanceof String).toBe(true);
//
@@ -21,5 +21,5 @@ Object.defineProperty(Greeting, Symbol.hasInstance, {
var a = new Greeting("hello");
var b = new Greeting("world");
assert.ok(a instanceof Greeting);
assert.ok(!(b instanceof Greeting));
expect(a instanceof Greeting).toBe(true);
expect(b instanceof Greeting).toBe(false);