Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mock-async-storage

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-async-storage - npm Package Compare versions

Comparing version 2.0.0 to 2.0.2

6

lib/mockAsyncStorage.js

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc