@samitouri / QOS-React / commits / a49b7a2dfb

Fix tests from #6158 to use Jasmine 2 (#7126)

Dan Abramov committed Jun 27, 2016 at 01:38 UTC a49b7a2dfb57852264eb83a7510490d19268089c
1 file changed +8 -8
src/isomorphic/classic/class/__tests__/ReactClassMixin-test.js
+8 -8
@@ -321,8 +321,8 @@ describe('ReactClass-mixin', function() {
321 },
322 });
323
324 - expect(console.error.argsForCall.length).toBe(1);
325 - expect(console.error.argsForCall[0][0]).toBe(
324 + expect(console.error.calls.count()).toBe(1);
325 + expect(console.error.calls.argsFor(0)[0]).toBe(
326 'Warning: ReactClass: You\'re attempting to include a mixin that is ' +
327 'either null or not an object. Check the mixins included by the ' +
328 'component, as well as any mixins they include themselves. ' +
@@ -341,8 +341,8 @@ describe('ReactClass-mixin', function() {
341 },
342 });
343
344 - expect(console.error.argsForCall.length).toBe(1);
345 - expect(console.error.argsForCall[0][0]).toBe(
344 + expect(console.error.calls.count()).toBe(1);
345 + expect(console.error.calls.argsFor(0)[0]).toBe(
346 'Warning: ReactClass: You\'re attempting to include a mixin that is ' +
347 'either null or not an object. Check the mixins included by the ' +
348 'component, as well as any mixins they include themselves. ' +
@@ -365,8 +365,8 @@ describe('ReactClass-mixin', function() {
365 },
366 });
367
368 - expect(console.error.argsForCall.length).toBe(1);
369 - expect(console.error.argsForCall[0][0]).toBe(
368 + expect(console.error.calls.count()).toBe(1);
369 + expect(console.error.calls.argsFor(0)[0]).toBe(
370 'Warning: ReactClass: You\'re attempting to include a mixin that is ' +
371 'either null or not an object. Check the mixins included by the ' +
372 'component, as well as any mixins they include themselves. ' +
@@ -389,8 +389,8 @@ describe('ReactClass-mixin', function() {
389 },
390 });
391
392 - expect(console.error.argsForCall.length).toBe(1);
393 - expect(console.error.argsForCall[0][0]).toBe(
392 + expect(console.error.calls.count()).toBe(1);
393 + expect(console.error.calls.argsFor(0)[0]).toBe(
394 'Warning: ReactClass: You\'re attempting to include a mixin that is ' +
395 'either null or not an object. Check the mixins included by the ' +
396 'component, as well as any mixins they include themselves. ' +