Skip to content

Commit

Permalink
Fix function reference in t.try() assertion documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mefengl committed Apr 4, 2022
1 parent c5d2b53 commit f8be152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/03-assertions.md
Expand Up @@ -288,7 +288,7 @@ const twoRandomIntegers = () => {
test('flaky macro', async t => {
const firstTry = await t.try((tt, a, b) => {
tt.is(a, b);
}, ...randomIntegers());
}, ...twoRandomIntegers());

if (firstTry.passed) {
firstTry.commit();
Expand All @@ -300,7 +300,7 @@ test('flaky macro', async t => {

const secondTry = await t.try((tt, a, b) => {
tt.is(a, b);
}, ...randomIntegers());
}, ...twoRandomIntegers());
secondTry.commit();
});
```
Expand Down

0 comments on commit f8be152

Please sign in to comment.