Migrate babel-preset-es2015 and -next-target tests to use jest expect

This commit is contained in:
Deven Bansod
2018-03-22 22:54:13 +05:30
parent 0856f89882
commit db42a5d70f
377 changed files with 2905 additions and 2899 deletions

View File

@@ -17,6 +17,6 @@ class Bar extends Foo {
new Foo;
new Bar;
assert.equal(targets[0], Foo);
assert.equal(targets[1], Bar);
assert.equal(targets[2], Bar);
expect(targets[0]).toBe(Foo);
expect(targets[1]).toBe(Bar);
expect(targets[2]).toBe(Bar);

View File

@@ -9,4 +9,4 @@ class Foo {
new Foo;
assert.equal(targets[0], Foo);
expect(targets[0]).toBe(Foo);

View File

@@ -12,5 +12,5 @@ function Bar() {
new Foo;
new Bar();
assert.equal(targets[0], Foo);
assert.equal(targets[1], undefined);
expect(targets[0]).toBe(Foo);
expect(targets[1]).toBeUndefined();

View File

@@ -7,4 +7,4 @@ function Foo() {
new Foo;
assert.equal(targets[0], Foo);
expect(targets[0]).toBe(Foo);

View File

@@ -8,5 +8,5 @@ function foo() {
foo();
foo.call({});
assert.equal(targets[0], undefined);
assert.equal(targets[1], undefined);
expect(targets[0]).toBeUndefined();
expect(targets[1]).toBeUndefined();