Skip to content

Commit

Permalink
Fix tests from #6158 to use Jasmine 2 (#7126)
Browse files Browse the repository at this point in the history
(cherry picked from commit a49b7a2)
  • Loading branch information
gaearon authored and zpao committed Jul 13, 2016
1 parent 9d385ef commit 891e087
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/isomorphic/classic/class/__tests__/ReactClassMixin-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ describe('ReactClass-mixin', function() {
},
});

expect(console.error.argsForCall.length).toBe(1);
expect(console.error.argsForCall[0][0]).toBe(
expect(console.error.calls.count()).toBe(1);
expect(console.error.calls.argsFor(0)[0]).toBe(
'Warning: ReactClass: You\'re attempting to include a mixin that is ' +
'either null or not an object. Check the mixins included by the ' +
'component, as well as any mixins they include themselves. ' +
Expand All @@ -341,8 +341,8 @@ describe('ReactClass-mixin', function() {
},
});

expect(console.error.argsForCall.length).toBe(1);
expect(console.error.argsForCall[0][0]).toBe(
expect(console.error.calls.count()).toBe(1);
expect(console.error.calls.argsFor(0)[0]).toBe(
'Warning: ReactClass: You\'re attempting to include a mixin that is ' +
'either null or not an object. Check the mixins included by the ' +
'component, as well as any mixins they include themselves. ' +
Expand All @@ -365,8 +365,8 @@ describe('ReactClass-mixin', function() {
},
});

expect(console.error.argsForCall.length).toBe(1);
expect(console.error.argsForCall[0][0]).toBe(
expect(console.error.calls.count()).toBe(1);
expect(console.error.calls.argsFor(0)[0]).toBe(
'Warning: ReactClass: You\'re attempting to include a mixin that is ' +
'either null or not an object. Check the mixins included by the ' +
'component, as well as any mixins they include themselves. ' +
Expand All @@ -389,8 +389,8 @@ describe('ReactClass-mixin', function() {
},
});

expect(console.error.argsForCall.length).toBe(1);
expect(console.error.argsForCall[0][0]).toBe(
expect(console.error.calls.count()).toBe(1);
expect(console.error.calls.argsFor(0)[0]).toBe(
'Warning: ReactClass: You\'re attempting to include a mixin that is ' +
'either null or not an object. Check the mixins included by the ' +
'component, as well as any mixins they include themselves. ' +
Expand Down

0 comments on commit 891e087

Please sign in to comment.