chai-exclude
Advanced tools
Comparing version 1.0.1 to 1.0.2
/// <reference types="chai" /> | ||
declare global { | ||
namespace Chai { | ||
interface Assertion { | ||
excluding(props: string|string[]): Assertion; | ||
excludingEvery(props: string|string[]): Assertion; | ||
} | ||
} | ||
declare module "chai-exclude" { | ||
function chaiExclude(chai: any, utils: any): void; | ||
export = chaiExclude; | ||
} | ||
declare function chaiExclude(chai: any, utils: any): void; | ||
export = chaiExclude; | ||
declare namespace Chai { | ||
interface Assertion { | ||
excluding(props: string | string[]): Assertion; | ||
excludingEvery(props: string | string[]): Assertion; | ||
} | ||
} |
{ | ||
"name": "chai-exclude", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Exclude keys before a deep equal operation with expect", | ||
@@ -5,0 +5,0 @@ "main": "lib/chai-exclude.js", |
@@ -28,2 +28,4 @@ # chai-exclude | ||
#### Require | ||
```js | ||
@@ -36,2 +38,22 @@ const chai = require('chai'); | ||
#### ES6 Import | ||
```js | ||
import { use } from 'chai'; | ||
import chaiExclude from 'chai-exclude'; | ||
use(chaiExclude); | ||
``` | ||
#### TypeScript | ||
```js | ||
import { use } from 'chai'; | ||
import chaiExclude = require('chai-exclude'); | ||
use(chaiExclude); | ||
// The typings for chai-exclude are included with the package itself. | ||
``` | ||
## Example | ||
@@ -38,0 +60,0 @@ |
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
6679
163