From bdb36e58f275313a478b2be9c0d72231b6882977 Mon Sep 17 00:00:00 2001 From: Shinnosuke Watanabe Date: Mon, 29 Apr 2019 12:47:13 +0900 Subject: [PATCH] chore: test on Node.js v12.x --- .travis.yml | 2 +- test/fixtures/import.mjs | 4 ++-- test/integration.js.snap | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1ca50f25..5aa65931 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,5 +4,5 @@ os: - osx - windows node_js: - - "11" + - "12" after_success: npm run coverage diff --git a/test/fixtures/import.mjs b/test/fixtures/import.mjs index dc89146b..1e49e856 100644 --- a/test/fixtures/import.mjs +++ b/test/fixtures/import.mjs @@ -1,3 +1,3 @@ -import foo from './export' +import foo from './export.mjs' -console.info(foo()) \ No newline at end of file +console.info(foo()) diff --git a/test/integration.js.snap b/test/integration.js.snap index e4bc5bf5..187d0279 100644 --- a/test/integration.js.snap +++ b/test/integration.js.snap @@ -24,7 +24,7 @@ hey -----------|----------|----------|----------|----------|-------------------| File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | -----------|----------|----------|----------|----------|-------------------| -All files | 83.33 | 85.71 | 66.67 | 83.33 | | +All files | 83.33 | 85.71 | 60 | 83.33 | | async.js | 100 | 100 | 100 | 100 | | normal.js | 75 | 66.67 | 33.33 | 75 | 14,15,16,18,19,20 | -----------|----------|----------|----------|----------|-------------------| @@ -64,7 +64,7 @@ exports[`c8 report generates report from existing temporary files 1`] = ` ",-----------|----------|----------|----------|----------|-------------------| File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | -----------|----------|----------|----------|----------|-------------------| -All files | 83.33 | 85.71 | 66.67 | 83.33 | | +All files | 83.33 | 85.71 | 60 | 83.33 | | async.js | 100 | 100 | 100 | 100 | | normal.js | 75 | 66.67 | 33.33 | 75 | 14,15,16,18,19,20 | -----------|----------|----------|----------|----------|-------------------| @@ -75,7 +75,7 @@ exports[`c8 report supports --check-coverage, when generating reports 1`] = ` ",-----------|----------|----------|----------|----------|-------------------| File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | -----------|----------|----------|----------|----------|-------------------| -All files | 83.33 | 85.71 | 66.67 | 83.33 | | +All files | 83.33 | 85.71 | 60 | 83.33 | | async.js | 100 | 100 | 100 | 100 | | normal.js | 75 | 66.67 | 33.33 | 75 | 14,15,16,18,19,20 | -----------|----------|----------|----------|----------|-------------------| @@ -95,7 +95,7 @@ hey -----------|----------|----------|----------|----------|-------------------| File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | -----------|----------|----------|----------|----------|-------------------| -All files | 83.33 | 85.71 | 66.67 | 83.33 | | +All files | 83.33 | 85.71 | 60 | 83.33 | | async.js | 100 | 100 | 100 | 100 | | normal.js | 75 | 66.67 | 33.33 | 75 | 14,15,16,18,19,20 | -----------|----------|----------|----------|----------|-------------------|