Tests for isTravisCI
This commit is contained in:
@ -5,9 +5,13 @@ test('Testing isTravisCI', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof isTravisCI === 'function', 'isTravisCI is a Function');
|
||||
if(isTravisCI())
|
||||
t.true(isTravisCI(), 'Running on Travis, correctly evaluates');
|
||||
else
|
||||
t.false(isTravisCI(), 'Not running on Travis, correctly evaluates');
|
||||
//t.deepEqual(isTravisCI(args..), 'Expected');
|
||||
//t.equal(isTravisCI(args..), 'Expected');
|
||||
//t.false(isTravisCI(args..), 'Expected');
|
||||
//t.throws(isTravisCI(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Test log for: Thu Feb 08 2018 16:08:45 GMT+0200 (GTB Standard Time)
|
||||
Test log for: Thu Feb 08 2018 16:12:32 GMT+0200 (GTB Standard Time)
|
||||
|
||||
> 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code
|
||||
> tape test/**/*.test.js | tap-spec
|
||||
@ -851,6 +851,7 @@ Test log for: Thu Feb 08 2018 16:08:45 GMT+0200 (GTB Standard Time)
|
||||
Testing isTravisCI
|
||||
|
||||
√ isTravisCI is a Function
|
||||
√ Not running on Travis, correctly evaluates
|
||||
|
||||
Testing isTypedArray
|
||||
|
||||
@ -1757,8 +1758,8 @@ Test log for: Thu Feb 08 2018 16:08:45 GMT+0200 (GTB Standard Time)
|
||||
√ Works with multiple promises
|
||||
|
||||
|
||||
total: 855
|
||||
passing: 855
|
||||
total: 856
|
||||
passing: 856
|
||||
duration: 2.4s
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user