From 6433a9c64403f5e93a3be8f964f59fb0b297e5e0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 29 Nov 2020 18:50:13 -0800 Subject: [PATCH] test: fix timeago unit test (#1906) --- src/routes/_thirdparty/timeago/timeago.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/_thirdparty/timeago/timeago.js b/src/routes/_thirdparty/timeago/timeago.js index 880b8b8c..8be2004f 100644 --- a/src/routes/_thirdparty/timeago/timeago.js +++ b/src/routes/_thirdparty/timeago/timeago.js @@ -8,7 +8,7 @@ const intlFormat = new Intl.RelativeTimeFormat(LOCALE) function formatRelativeTime (number, index) { if (index === 0) { if (process.env.NODE_ENV === 'test') { - return require('../../../intl/en-US').justNow // only used in mocha tests + return require('../../../intl/en-US').default.justNow // only used in mocha tests } return 'intl.justNow' }