mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-27 22:54:46 +08:00
Adapt unit tests
Reviewed By: mirciulix, bestander Differential Revision: D3561508 fbshipit-source-id: afede6b03112d99f73ed7cf6bbce03d1aeea0492
This commit is contained in:
committed by
Facebook Github Bot 7
parent
f22e86e18d
commit
94efa8f58f
@@ -1,4 +1,3 @@
|
||||
|
||||
/**
|
||||
* Copyright (c) 2015, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
@@ -58,7 +57,7 @@ describe('NavigationEvent', () => {
|
||||
it('recycles', () => {
|
||||
var event1 = NavigationEvent.pool('foo', {}, 123);
|
||||
event1.dispose();
|
||||
expect(event1.type).toBe(null);
|
||||
expect(event1.type).toBeFalsy();
|
||||
expect(event1.data).toBe(null);
|
||||
expect(event1.target).toBe(null);
|
||||
|
||||
@@ -67,5 +66,3 @@ describe('NavigationEvent', () => {
|
||||
expect(event2).toBe(event1);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user