cypress-localstorage-commands
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -14,2 +14,6 @@ # Change Log | ||
## [1.1.7] - 2020-03-22 | ||
### Changed | ||
- Update devDependencies | ||
## [1.1.6] - 2020-02-19 | ||
@@ -16,0 +20,0 @@ ### Changed |
{ | ||
"name": "cypress-localstorage-commands", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Extends Cypress' cy commands with localStorage methods. Allows preserving localStorage between tests", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"babel-eslint": "10.0.3", | ||
"babel-eslint": "10.1.0", | ||
"coveralls": "3.0.9", | ||
@@ -44,8 +44,8 @@ "eslint": "6.8.0", | ||
"eslint-plugin-prettier": "3.1.2", | ||
"eslint-plugin-react": "7.18.3", | ||
"eslint-plugin-react": "7.19.0", | ||
"husky": "4.2.3", | ||
"jest": "25.1.0", | ||
"lint-staged": "10.0.7", | ||
"prettier": "1.19.1", | ||
"sinon": "8.1.1" | ||
"lint-staged": "10.0.8", | ||
"prettier": "2.0.1", | ||
"sinon": "9.0.1" | ||
}, | ||
@@ -52,0 +52,0 @@ "lint-staged": { |
[![Build status][travisci-image]][travisci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url] | ||
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjavierbrea%2Fcypress-localstorage-commands.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjavierbrea%2Fcypress-localstorage-commands?ref=badge_shield) | ||
@@ -3,0 +4,0 @@ [![NPM dependencies][npm-dependencies-image]][npm-dependencies-url] [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url] |
@@ -9,3 +9,3 @@ class LocalStorage { | ||
"getLocalStorage", | ||
"removeLocalStorage" | ||
"removeLocalStorage", | ||
]; | ||
@@ -25,3 +25,3 @@ } | ||
this.clearLocalStorageSnapshot(); | ||
Object.keys(this._localStorage).forEach(key => { | ||
Object.keys(this._localStorage).forEach((key) => { | ||
this._snapshot[key] = this._localStorage.getItem(key); | ||
@@ -33,3 +33,3 @@ }); | ||
this._localStorage.clear(); | ||
Object.keys(this._snapshot).forEach(key => { | ||
Object.keys(this._snapshot).forEach((key) => { | ||
this._localStorage.setItem(key, this._snapshot[key]); | ||
@@ -36,0 +36,0 @@ }); |
@@ -5,3 +5,3 @@ const LocalStorage = require("./LocalStorage"); | ||
const localStorageCommands = new LocalStorage(localStorage); | ||
LocalStorage.cypressCommands.forEach(commandName => { | ||
LocalStorage.cypressCommands.forEach((commandName) => { | ||
Cypress.Commands.add( | ||
@@ -15,3 +15,3 @@ commandName, | ||
module.exports = { | ||
register | ||
register, | ||
}; |
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
12167
179