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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user