mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
[React Native][react-packager] Fix test runner and fialing tests
This commit is contained in:
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user