mock-async-storage
Advanced tools
Comparing version 2.0.0 to 2.0.2
@@ -123,3 +123,3 @@ 'use strict'; | ||
class AsyncStorageMock extends AsyncDict { | ||
class MockAsyncStorage extends AsyncDict { | ||
mergeItem(key, value, cb) { | ||
@@ -169,4 +169,6 @@ var _this9 = this; | ||
} | ||
flushGetRequests() {} | ||
} | ||
exports.default = AsyncStorageMock; | ||
exports.default = MockAsyncStorage; |
{ | ||
"name": "mock-async-storage", | ||
"title": "Jest Mock AsyncStorage for react-native", | ||
"version": "2.0.0", | ||
"version": "2.0.2", | ||
"description": "Its a mock of react-native AsyncStorage for jest tests", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -45,4 +45,5 @@ <!-- TITLE/ --> | ||
<h1>mock-async-storage@beta</h1> | ||
<h1>mock-async-storage@2.x.x</h1> | ||
<h2>Whats the main difference?</h2> | ||
@@ -120,6 +121,4 @@ | ||
<h1>mock-async-storage</h1> | ||
<h1>mock-async-storage@1.x.x</h1> | ||
<p>This is for the current verison</p> | ||
<h2>Usage</h2> | ||
@@ -126,0 +125,0 @@ |
/* eslint-env jest */ | ||
import AsyncStorageMock from '../index' | ||
import MockAsyncStorage from '../index' | ||
const storage = new AsyncStorageMock() | ||
const storage = new MockAsyncStorage() | ||
@@ -7,0 +7,0 @@ describe('Async Storage Tests', () => { |
@@ -1,3 +0,3 @@ | ||
import AsyncStorageMock from './mockAsyncStorage' | ||
import MockAsyncStorage from './mockAsyncStorage' | ||
export default AsyncStorageMock | ||
export default MockAsyncStorage |
@@ -88,3 +88,3 @@ // @flow | ||
class AsyncStorageMock extends AsyncDict<string, string> { | ||
class MockAsyncStorage extends AsyncDict<string, string> { | ||
async mergeItem (key: string, value: string, cb: ?ErrBack<string>): Promise<> { | ||
@@ -126,4 +126,6 @@ const item: ?string = await this.getItem(key) | ||
} | ||
flushGetRequests () {} | ||
} | ||
export default AsyncStorageMock | ||
export default MockAsyncStorage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127598
396
166