diff --git a/website/docs/matchers/toSatisy.mdx b/website/docs/matchers/toSatisy.mdx deleted file mode 100644 index 561e7a79..00000000 --- a/website/docs/matchers/toSatisy.mdx +++ /dev/null @@ -1,18 +0,0 @@ ---- -sidebar_position: 6 ---- - -import { TestFile } from '../../src/components/CustomSandpack'; - -# .toSatisfy(predicate) - -Use `.toSatisfy` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean`. - - - {`test('passes when value passes given predicate', () => { - const greaterThanOneButNotThree = n => n > 1 && n !== 3; - expect(100).toSatisfy(greaterThanOneButNotThree); - expect(0).not.toSatisfy(greaterThanOneButNotThree); - expect(3).not.toSatisfy(greaterThanOneButNotThree); -});`} -