From c667d1060f97da24abf48e41a284e037f0b410a0 Mon Sep 17 00:00:00 2001 From: "JeongHoon Byun (a.k.a Outsider)" Date: Tue, 19 Jan 2021 18:02:57 +0900 Subject: [PATCH] docs: fix javascript syntax errors (#4555) 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 - }) + } }; ```