From 669968e8e75afda41663fe97c5d9a533eee4a557 Mon Sep 17 00:00:00 2001 From: Sinh Date: Tue, 24 Mar 2020 13:23:42 +0700 Subject: [PATCH] chore: Update travis check node 12 LTS (#847) --- .eslintrc.json | 4 ++-- .travis.yml | 1 + test/locale/zh.test.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 97a4645f8..2fa59438c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -38,7 +38,7 @@ ], "import/extensions": [ 2, - "ignorePackages" + "never" ] } -} \ No newline at end of file +} diff --git a/.travis.yml b/.travis.yml index 5f28442a0..91412f242 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ cache: - ~/.npm - node_modules node_js: + - '12' - '10' - '8' - '6' diff --git a/test/locale/zh.test.js b/test/locale/zh.test.js index f018eda19..017582a20 100644 --- a/test/locale/zh.test.js +++ b/test/locale/zh.test.js @@ -1,8 +1,8 @@ import dayjs from '../../src' import advancedFormat from '../../src/plugin/advancedFormat' import weekOfYear from '../../src/plugin/weekOfYear' -import '../../src/locale/zh.js' -import '../../src/locale/zh-cn.js' +import '../../src/locale/zh' +import '../../src/locale/zh-cn' dayjs.extend(advancedFormat).extend(weekOfYear)