Skip to content

Commit c667d10

Browse files
authored
docs: fix javascript syntax errors (#4555)
Signed-off-by: Outsider <[email protected]>
1 parent 6eb3c3c commit c667d10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1498,12 +1498,12 @@ Your `test/hooks.js` (for this example, a CJS module) should contain:
14981498
// test/hooks.js
14991499

15001500
exports.mochaHooks = {
1501-
beforeEach(function() {
1501+
beforeEach: function() {
15021502
// global setup for all tests
1503-
}),
1504-
afterAll(function() {
1503+
},
1504+
afterAll: function() {
15051505
// one-time final cleanup
1506-
})
1506+
}
15071507
};
15081508
```
15091509

0 commit comments

Comments
 (0)