Skip to content

Commit a87461c

Browse files
authored
chore(deps): remove 'wide-align' (#4754)
1 parent c7f56d1 commit a87461c

File tree

4 files changed

+320
-416
lines changed

4 files changed

+320
-416
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ In some cases, you may want a [hook](#hooks) before (or after) every test in eve
13871387

13881388
A _Root Hook Plugin_ is a JavaScript file loaded via [`--require`](#-require-module-r-module) which "registers" one or more root hooks to be used across all test files.
13891389

1390-
In browsers you can set root hooks directly via a `rootHooks` object: `mocha.setup({ rootHooks: beforeEach() {...} })`, also see [`mocha.setup()`](#running-mocha-in-the-browser)
1390+
In browsers you can set root hooks directly via a `rootHooks` object: `mocha.setup({ rootHooks: {beforeEach() {...}} })`, see [`mocha.setup()`](#running-mocha-in-the-browser)
13911391

13921392
### Defining a Root Hook Plugin
13931393

lib/cli/one-and-dones.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @private
99
*/
1010

11-
const align = require('wide-align');
1211
const Mocha = require('../mocha');
1312

1413
/**
@@ -30,7 +29,7 @@ const showKeys = obj => {
3029
.forEach(key => {
3130
const description = obj[key].description;
3231
console.log(
33-
` ${align.left(key, maxKeyLength + 1)}${
32+
` ${key.padEnd(maxKeyLength + 1)}${
3433
description ? `- ${description}` : ''
3534
}`
3635
);

0 commit comments

Comments
 (0)