From b4cbf25f265ec5ec76a1bfae46ea7108d236df48 Mon Sep 17 00:00:00 2001 From: Jeff Sagal Date: Sat, 28 May 2016 17:06:41 -0700 Subject: [PATCH] adjust srcContext, add coveralls hook --- .travis.yml | 2 ++ test/unit/index.js | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4e71bd7..6c83248 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,3 +6,5 @@ node_js: - "4.2" - "4.1" - "4.0" +after_success: + - coveralls diff --git a/test/unit/index.js b/test/unit/index.js index 386c9db..d1830c1 100644 --- a/test/unit/index.js +++ b/test/unit/index.js @@ -9,5 +9,4 @@ testsContext.keys().forEach(testsContext) // require all src files except main.js for coverage. // you can also change this to match only the subset of files that // you want coverage for. -var srcContext = require.context('../../src', true, /^\.\/(?!main(\.js)?$)/) -srcContext.keys().forEach(srcContext) \ No newline at end of file +var srcContext = require('../../src/components/Select.vue') \ No newline at end of file