Commit 6e6e6af8b885b2550db8d474e3eb01894db7e5e3
scope tests to a test account with ssb_appname env
mix irving committed on 1/22/2017, 12:34:31 AMParent: 4025426c698a92a5e116d912175a42f3c0accf6a
Files changed
modules_basic/index.test.js | changed |
modules_core/index.test.js | changed |
modules_extra/index.test.js | changed |
modules_basic/index.test.js | ||
---|---|---|
@@ -1,7 +1,9 @@ | ||
1 | 1 … | const test = require('tape') |
2 | 2 … | const combine = require('depject') |
3 | 3 … | |
4 … | +process.env.ssb_appname = 'test' | |
5 … | + | |
4 | 6 … | const core = require('../modules_core') |
5 | 7 … | const basic = require('./') |
6 | 8 … | |
7 | 9 … | test('modules_basic has no outside deps', t => { |
modules_core/index.test.js | ||
---|---|---|
@@ -1,7 +1,9 @@ | ||
1 | 1 … | const test = require('tape') |
2 | 2 … | const combine = require('depject') |
3 | 3 … | |
4 … | +process.env.ssb_appname = 'test' | |
5 … | + | |
4 | 6 … | const core = require('./') |
5 | 7 … | |
6 | 8 … | test('modules_core has no outside deps', t => { |
7 | 9 … | t.ok(combine(core)) |
modules_extra/index.test.js | ||
---|---|---|
@@ -1,9 +1,9 @@ | ||
1 | 1 … | const test = require('tape') |
2 | 2 … | const jsdom = require('jsdom') |
3 | 3 … | const combine = require('depject') |
4 | 4 … | |
5 | -var window = {} | |
5 … | +process.env.ssb_appname = 'test' | |
6 | 6 … | |
7 | 7 … | const core = require('../modules_core') |
8 | 8 … | const basic = require('../modules_basic') |
9 | 9 … | const extra = require('./') |
Built with git-ssb-web