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

@@ -1,23 +1,23 @@
var foo = function () {};
assert.equal(foo.name, "foo");
expect(foo.name).toBe("foo");
var obj = { foo: function () {} };
assert.equal(obj.foo.name, "foo");
expect(obj.foo.name).toBe("foo");
var obj = { "foo": function () {} };
assert.equal(obj.foo.name, "foo");
expect(obj.foo.name).toBe("foo");
var obj = { foo() {} };
assert.equal(obj.foo.name, "foo");
expect(obj.foo.name).toBe("foo");
var obj = { "foo"() {} };
assert.equal(obj.foo.name, "foo");
expect(obj.foo.name).toBe("foo");
function noop() {}
var obj = { @noop foo() {} };
assert.equal(obj.foo.name, "foo");
expect(obj.foo.name).toBe("foo");
var obj = { @noop foo: function () { return "foo"; } };
assert.equal(obj.foo.name, "foo");
expect(obj.foo.name).toBe("foo");