cypress-should
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -385,15 +385,2 @@ /// <reference types="cypress" /> | ||
/** | ||
* Custom Chai assertion that checks that the response content type is equal to text content type | ||
* @example | ||
* ``` | ||
* cy.request('/users').should('be.text'); | ||
* or | ||
* cy.request('/users').should((response) => { | ||
* expect(response).to.be.text; | ||
* }); | ||
* ``` | ||
* */ | ||
(chainer: 'be.text'): Chainable<Subject>; | ||
/** | ||
* Custom Chai assertion that checks that the response cookies contain given cookie | ||
@@ -400,0 +387,0 @@ * @example |
@@ -212,9 +212,2 @@ /* eslint-disable no-undef */ | ||
[ | ||
'text', | ||
function toBeText() { | ||
const actualContentType = this._obj.headers['content-type']; | ||
assert(actualContentType).to.eq('text/plain'); | ||
}, | ||
], | ||
[ | ||
'javascript', | ||
@@ -221,0 +214,0 @@ function toBeJavascript() { |
{ | ||
"name": "cypress-should", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Supercool assertion library for Cypress", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
24980
607