From 43f092807bee13e036048f977172938ab2de331e Mon Sep 17 00:00:00 2001 From: Jeroen van Rensen <46967616+jeroenvanrensen@users.noreply.github.com> Date: Sun, 24 Sep 2023 17:50:18 +0200 Subject: Update writing.md - Remove duplicate code snippet (#5966) --- docs/test/writing.md | 6 ------ 1 file changed, 6 deletions(-) (limited to 'docs/test') diff --git a/docs/test/writing.md b/docs/test/writing.md index 6e2df210b..3514ae4e9 100644 --- a/docs/test/writing.md +++ b/docs/test/writing.md @@ -139,12 +139,6 @@ $ bun test --only To run a test conditionally, use `test.if()`. The test will run if the condition is truthy. This is particularly useful for tests that should only run on specific architectures or operating systems. -```ts -test.if(Math.random() > 0.5)("runs half the time", () => { - // ... -}); -``` - ```ts test.if(Math.random() > 0.5)("runs half the time", () => { // ... -- cgit v1.2.3