[React Native][react-packager] Fix test runner and fialing tests

This commit is contained in:
Amjad Masad
2015-02-28 14:30:34 -08:00
parent 68fcfc3050
commit a9c8b13e6e
10 changed files with 33 additions and 15 deletions

View File

@@ -10,6 +10,7 @@ describe('Activity', function() {
beforeEach(function() {
console.log = jest.genMockFn();
Activity = require('../');
jest.runOnlyPendingTimers();
});
afterEach(function() {
@@ -60,12 +61,15 @@ describe('Activity', function() {
expect(function() {
Activity.endEvent(eid);
}).toThrow('event(1) has already ended!');
}).toThrow('event(3) has already ended!');
jest.runOnlyPendingTimers();
});
});
describe('signal', function() {
it('writes a SIGNAL event out to the console', function() {
var EVENT_NAME = 'EVENT_NAME';
var DATA = {someData: 42};