-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
31 lines (27 loc) · 787 Bytes
/
test.js
File metadata and controls
31 lines (27 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';
const test = require('tape-catch');
const allOtherThingsBeingEqual = require('./');
test('all methods available from root', assert => {
assert.plan(5);
[
'networkIsReliable',
'networkIsSecure',
'latencyIsZero',
'bandwidthIsInfinite',
'codeCoverageEqualsTestCaseCoverage'
].forEach(m => assert.notOk(allOtherThingsBeingEqual[m](), m));
});
test('all methods available separately', assert => {
assert.plan(5);
[
'network-is-reliable',
'network-is-secure',
'latency-is-zero',
'bandwidth-is-infinite',
'code-coverage-equals-test-case-coverage'
].forEach(m => assert.notOk(require('./' + m)(), m));
});
test('all other things being equal', assert => {
assert.plan(1);
assert.notOk(allOtherThingsBeingEqual(), 'nope');
});