mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Unit Test 12 - Fix Storage Mock
Summary: **Final Goal** Currently unit test by default unmock everything and dependencies have to be explicitely mocked. The goal is to mock everything by default and whitelist (unmock) explicitely. **This Diff** Fixes the typing in the mock and add unit tests Differential Revision: D16198318 fbshipit-source-id: d2bb71e9c940f4aeb48f8ac92bf3c5444ebc2025
This commit is contained in:
committed by
Facebook Github Bot
parent
daa6b0a1fe
commit
2bf8c8bcd6
+2
-2
@@ -1123,7 +1123,7 @@ declare var expect: {
|
||||
hasAssertions(): void,
|
||||
any(value: mixed): JestAsymmetricEqualityType,
|
||||
anything(): any,
|
||||
arrayContaining(value: Array<mixed>): Array<mixed>,
|
||||
arrayContaining(value: $ReadOnlyArray<mixed>): Array<mixed>,
|
||||
objectContaining(value: Object): Object,
|
||||
/** Matches any received string that contains the exact expected string. */
|
||||
stringContaining(value: string): string,
|
||||
@@ -1162,7 +1162,7 @@ declare var jasmine: {
|
||||
DEFAULT_TIMEOUT_INTERVAL: number,
|
||||
any(value: mixed): JestAsymmetricEqualityType,
|
||||
anything(): any,
|
||||
arrayContaining(value: Array<mixed>): Array<mixed>,
|
||||
arrayContaining(value: $ReadOnlyArray<mixed>): Array<mixed>,
|
||||
clock(): JestClockType,
|
||||
createSpy(name: string): JestSpyType,
|
||||
createSpyObj(
|
||||
|
||||
Reference in New Issue
Block a user