Replace jest.dontMock with jest.unmock

This commit is contained in:
Jerko Steiner 2016-04-01 20:01:38 -04:00
parent e03670b81c
commit cc1f56e5d1
5 changed files with 10 additions and 14 deletions

View File

@ -1,5 +1,5 @@
jest.dontMock('../app.js');
jest.dontMock('underscore');
jest.unmock('../app.js');
jest.unmock('underscore');
const React = require('react');
const ReactDOM = require('react-dom');

View File

@ -1,7 +1,6 @@
jest.dontMock('../handshake.js');
jest.dontMock('events');
jest.dontMock('debug');
jest.dontMock('underscore');
jest.unmock('../handshake.js');
jest.unmock('events');
jest.unmock('underscore');
const dispatcher = require('../../dispatcher/dispatcher.js');
const handshake = require('../handshake.js');

View File

@ -1,5 +1,4 @@
jest.dontMock('../activeStore.js');
jest.dontMock('debug');
jest.unmock('../activeStore.js');
const dispatcher = require('../../dispatcher/dispatcher.js');
const activeStore = require('../activeStore.js');

View File

@ -1,5 +1,4 @@
jest.dontMock('../streamStore.js');
jest.dontMock('debug');
jest.unmock('../streamStore.js');
const createObjectUrl = require('../../browser/createObjectURL.js');
const dispatcher = require('../../dispatcher/dispatcher.js');

View File

@ -1,8 +1,7 @@
'use strict';
jest.dontMock('../socket.js');
jest.dontMock('events');
jest.dontMock('debug');
jest.dontMock('underscore');
jest.unmock('../socket.js');
jest.unmock('events');
jest.unmock('underscore');
const EventEmitter = require('events').EventEmitter;
const handleSocket = require('../socket.js');