Skip to content

Commit 44b5c4b

Browse files
authored
fixing trailing spaces
1 parent 8280fe7 commit 44b5c4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contributor_docs/unit_testing.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ As you can see, the subfolders in the `unit` subfolder roughly correspond to the
2525

2626
## Testing frameworks
2727

28-
p5.js 2.0 runs its tests with [Vitest](https://vitest.dev), which provides
29-
Mocha-compatible globals (`suite`, `test`, etc.) so existing tests still read
30-
the same. It is responsible for running the test code as well as providing a solid framework for reporting test results (i.e., the very long output you see in the terminal when you run the tests!)
28+
p5.js 2.0 runs its tests with [Vitest](https://vitest.dev), which provides Mocha-compatible globals (`suite`, `test`, etc.). It is responsible for running the test code as well as providing a solid framework for reporting test results (i.e., the very long output you see in the terminal when you run the tests!)
3129

3230
However, Vitest still needs an assertion layer, and it bundles Chai for that. An assertion library is a collection of handy functions that lets us test various properties of our code, such as whether two values are equal, two values are of the same type, whether a function throws an error, and many more. p5.js uses [Chai's `assert` (and `expect`)](https://www.chaijs.com/api/assert/) to write individual statements about how the code should behave. You can also import `assert` and `expect` straight from Vitest (Vitest bundles Chai internally):
3331

0 commit comments

Comments
 (0)