Skip to content

Commit ced2d10

Browse files
committed
update moment module from testcafe/node_modules/ (closes DevExpress#1750)
1 parent 7307f6f commit ced2d10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"map-reverse": "^1.0.1",
8686
"mkdirp": "^0.5.1",
8787
"moment": "^2.10.3",
88-
"moment-duration-format": "^1.3.0",
88+
"moment-duration-format": "^2.2.2",
8989
"mustache": "^2.1.2",
9090
"nanoid": "^1.0.1",
9191
"node-version": "^1.0.0",

src/reporter/plugin-host.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ import chalk from 'chalk';
22
import indentString from 'indent-string';
33
import { identity, escape as escapeHtml, assignIn } from 'lodash';
44
import moment from 'moment';
5-
import 'moment-duration-format';
5+
import momentDurationFormatSetup from 'moment-duration-format';
66
import OS from 'os-family';
77
import { wordWrap, removeTTYColors } from '../utils/string';
88
import getViewportWidth from '../utils/get-viewport-width';
99

10+
momentDurationFormatSetup(moment);
11+
1012
// NOTE: we should not expose internal state to
1113
// the plugin, to avoid accidental rewrites.
1214
// Therefore we use symbols to store them.

0 commit comments

Comments
 (0)