Skip to content

Commit

Permalink
Docs: Add missing word (#266)
Browse files Browse the repository at this point in the history
`This test is going pass` -> `This test is going to pass`
  • Loading branch information
calvinballing committed Nov 18, 2022
1 parent 3ba3eb7 commit 64d6faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-assert-ok.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test('test myFunc returns a truthy value', (assert) => {
});
```

Here by mistake a developer just passed to `assert.ok` a pointer to `myFunc` instead of explicitly calling it. This test is going pass no matter how `myFunc` changes. Using `assert.strictEqual(myFunc, theReturnValue)` solves the problem as this becomes an explicit check for equality.
Here by mistake a developer just passed to `assert.ok` a pointer to `myFunc` instead of explicitly calling it. This test is going to pass no matter how `myFunc` changes. Using `assert.strictEqual(myFunc, theReturnValue)` solves the problem as this becomes an explicit check for equality.

## Rule Details

Expand Down

0 comments on commit 64d6faa

Please sign in to comment.