Skip to content

Commit 2a1743e

Browse files
authored
Merge pull request #3514 from simonetimi/patch-1
fix typo "testi" with "test"
2 parents 3b258c8 + 7937a54 commit 2a1743e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/5/en/part5d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ describe('Note app', () => {
798798
799799
First, the login function is tested. After this, another _describe_ block contains a set of tests that assume that the user is logged in, the login is handled inside the initializing _beforeEach_ block.
800800
801-
As already stated earlier, each test is executed starting from the initial state (where the database is cleared and one user is created there), so even though the test is defined after another testi in the code, it does not start from the same state where the tests in the code executed earlier have left!
801+
As already stated earlier, each test is executed starting from the initial state (where the database is cleared and one user is created there), so even though the test is defined after another test in the code, it does not start from the same state where the tests in the code executed earlier have left!
802802
803803
It is also worth striving for non-repetitive code in tests. Let's isolate the code that handles the login as a helper function, which is placed e.g. in the file _tests/helper.js_:
804804

0 commit comments

Comments
 (0)