From 181b78a02f69227c492553a02c2b13d981174b88 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 28 Sep 2015 22:32:50 +0200 Subject: [PATCH 1/3] test: add fixtures directory --- test/fixtures/.shout/config.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/fixtures/.shout/config.js diff --git a/test/fixtures/.shout/config.js b/test/fixtures/.shout/config.js new file mode 100644 index 00000000..3f900589 --- /dev/null +++ b/test/fixtures/.shout/config.js @@ -0,0 +1,5 @@ +var config = require("../../../defaults/config.js"); + +config.prefetch = true; + +module.exports = config; From d4322db5a8ffc1f68760703822f0ec72943b3a29 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 28 Sep 2015 22:33:14 +0200 Subject: [PATCH 2/3] package.json: fix tests --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ef1740b3..50684d23 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "scripts": { "start": "node index", - "test": "mocha test/**/*.js" + "test": "HOME=test/fixtures mocha test/**/*.js" }, "keywords": [ "browser", From 679e27fd976b39fb1d4b7927b9200120092d74d3 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 28 Sep 2015 22:33:54 +0200 Subject: [PATCH 3/3] .travis.yml: remove before_script This is no longer needed since introduction of test fixtures. --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e161d5e6..3b74edf3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,4 @@ node_js: - "0.12" - "4.0" - "4.1" -before_script: - - mkdir ~/.shout - - cp defaults/config.js ~/.shout sudo: false