@samitouri / QOS-React-2 / commits / 320024555c

Codemod mockDefaultReturnValue

The naming is super confusing. mockReturnValue -> mockReturnValueOnce mockDefaultReturnValue -> mockReturnValue

Christopher Chedeau committed May 8, 2014 at 10:07 UTC 320024555cef1b826f8ba9e8bafccad8a5a118e7
1 file changed +1 -1
src/event/__tests__/EventPluginHub-test.js
+1 -1
@@ -30,7 +30,7 @@ describe('EventPluginHub', function() {
30 require('mock-modules').dumpCache();
31 EventPluginHub = require('EventPluginHub');
32 isEventSupported = require('isEventSupported');
33 - isEventSupported.mockReturnValue(false);
33 + isEventSupported.mockReturnValueOnce(false);
34 });
35
36 it('should warn about the `onScroll` issue on IE8', function() {