From 9b390708899eae9be25541ad7aafa0dccee29c07 Mon Sep 17 00:00:00 2001 From: Outsider Date: Sun, 17 Jan 2021 03:12:17 +0900 Subject: [PATCH] fix javascript syntax errors Signed-off-by: Outsider --- docs/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index aa1d0e5778..b039931a16 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1498,12 +1498,12 @@ Your `test/hooks.js` (for this example, a CJS module) should contain: // test/hooks.js exports.mochaHooks = { - beforeEach(function() { + beforeEach: function() { // global setup for all tests - }), - afterAll(function() { + }, + afterAll: function() { // one-time final cleanup - }) + } }; ```