(assertion: Chai.Assertion)
| 70 | } |
| 71 | |
| 72 | function validateAssertion(assertion: Chai.Assertion): void { |
| 73 | if (chai.util.flag(assertion, 'negate')) { |
| 74 | throw new Error(`${getAssertionName(assertion)} cannot be used with "not"`) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | export const SnapshotPlugin: ChaiPlugin = (chai, utils) => { |
| 79 | for (const key of ['matchSnapshot', 'toMatchSnapshot']) { |
no test coverage detected