From 386cb0b0ce40392983b59e3ee7a20b83441b83ff Mon Sep 17 00:00:00 2001 From: Marco Verdecchia Date: Wed, 21 Dec 2022 15:27:24 +0100 Subject: [PATCH] Remove duplicate file toSatify.mdx (toSatisfy.mdx exist) --- website/docs/matchers/toSatisy.mdx | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 website/docs/matchers/toSatisy.mdx 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); -});`} -