New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

expect-puppeteer

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expect-puppeteer - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

<a name="2.0.1"></a>
## [2.0.1](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/puppeteer-expect/compare/v2.0.0...v2.0.1) (2018-03-08)
### Bug Fixes
* **expect-puppeteer:** fix expectMatch when body is undefined ([#9](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/puppeteer-expect/issues/9)) ([0c60970](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/puppeteer-expect/commit/0c60970))
<a name="2.0.0"></a>

@@ -8,0 +19,0 @@ # [2.0.0](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/puppeteer-expect/compare/v1.1.1...v2.0.0) (2018-03-05)

2

lib/matchers/notToMatch.js

@@ -6,3 +6,3 @@ "use strict";

try {
await page.waitForFunction(`document.body.textContent.match(new RegExp('${matcher}')) === null`, options);
await page.waitForFunction(`document.body && document.body.textContent.match(new RegExp('${matcher}')) === null`, options);
} catch (error) {

@@ -9,0 +9,0 @@ throw new Error(`Text found "${matcher}"`);

@@ -6,3 +6,3 @@ "use strict";

try {
await page.waitForFunction(`document.body.textContent.match(new RegExp('${matcher}')) !== null`, options);
await page.waitForFunction(`document.body && document.body.textContent.match(new RegExp('${matcher}')) !== null`, options);
} catch (error) {

@@ -9,0 +9,0 @@ throw new Error(`Text not found "${matcher}"`);

{
"name": "expect-puppeteer",
"description": "Assertion toolkit for Puppeteer.",
"version": "2.0.0",
"version": "2.0.1",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "repository": "https://github.com/smooth-code/jest-puppeteer/tree/master/packages/puppeteer-expect",

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