From 9de6db09516d3c8d88eb925a1b3da78228ac9bea Mon Sep 17 00:00:00 2001 From: 59naga Date: Fri, 13 May 2016 11:48:38 +0900 Subject: [PATCH] chore: drop support node-v0 see: https://github.com/nodejs/LTS#lts_schedule --- .travis.yml | 1 - test/index.js | 4 ---- 2 files changed, 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 34c9bb9..78e0fb9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,6 @@ language: node_js before_install: - if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi node_js: - - '0' - 4 - 5 - 6 diff --git a/test/index.js b/test/index.js index be00a28..3b4bcb7 100644 --- a/test/index.js +++ b/test/index.js @@ -54,10 +54,6 @@ describe('babel-plugin-add-module-exports', () => { // assert module root (module.exports) object equal(module, testCase.expected.module) - if (typeof testCase.expected.exports !== 'object') { - return // avoid "Object.keys called on non-object" in node-v0 - } - // assert each common entry is exported without error Object.keys(testCase.expected.exports).forEach((key) => equal(module[key], testCase.expected.exports[key]))