From 94efa8f58fdf654175c7a33236f5011ebe19fc06 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Thu, 14 Jul 2016 06:18:08 -0700 Subject: [PATCH] Adapt unit tests Reviewed By: mirciulix, bestander Differential Revision: D3561508 fbshipit-source-id: afede6b03112d99f73ed7cf6bbce03d1aeea0492 --- .../Navigator/Navigation/__tests__/NavigationEvent-test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Libraries/CustomComponents/Navigator/Navigation/__tests__/NavigationEvent-test.js b/Libraries/CustomComponents/Navigator/Navigation/__tests__/NavigationEvent-test.js index 9d3811df6..e9a54290d 100644 --- a/Libraries/CustomComponents/Navigator/Navigation/__tests__/NavigationEvent-test.js +++ b/Libraries/CustomComponents/Navigator/Navigation/__tests__/NavigationEvent-test.js @@ -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); }); }); - -