Skip to content

Commit

Permalink
chore(deps): remove 'wide-align' (#4754)
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Sep 24, 2021
1 parent c7f56d1 commit a87461c
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 416 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Expand Up @@ -1387,7 +1387,7 @@ In some cases, you may want a [hook](#hooks) before (or after) every test in eve

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.

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)
In browsers you can set root hooks directly via a `rootHooks` object: `mocha.setup({ rootHooks: {beforeEach() {...}} })`, see [`mocha.setup()`](#running-mocha-in-the-browser)

### Defining a Root Hook Plugin

Expand Down
3 changes: 1 addition & 2 deletions lib/cli/one-and-dones.js
Expand Up @@ -8,7 +8,6 @@
* @private
*/

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

/**
Expand All @@ -30,7 +29,7 @@ const showKeys = obj => {
.forEach(key => {
const description = obj[key].description;
console.log(
` ${align.left(key, maxKeyLength + 1)}${
` ${key.padEnd(maxKeyLength + 1)}${
description ? `- ${description}` : ''
}`
);
Expand Down

0 comments on commit a87461c

Please sign in to comment.