From 3ec979997eda5f43366c0e9b6efb85ee9d1186c5 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Thu, 8 Feb 2018 16:13:19 +0200 Subject: [PATCH] Tests for isTravisCI --- locale/de_DE_log | 7 ++----- locale/el_GR_log | 7 ++----- test/isTravisCI/isTravisCI.test.js | 6 +++++- test/testlog | 7 ++++--- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/locale/de_DE_log b/locale/de_DE_log index 442f74b7e..b088e2756 100644 --- a/locale/de_DE_log +++ b/locale/de_DE_log @@ -1,6 +1,3 @@ -Thu Feb 08 2018 16:08:52 GMT+0200 (GTB Standard Time) -Hash changes: 1 +Thu Feb 08 2018 16:12:29 GMT+0200 (GTB Standard Time) +Hash changes: 0 -Snippet name:toCurrency - Old hash: d1c86c6f075b79b53b74aede9669101f1a07e89cc73ccabf347ad42674b1a33c - New hash: f00f4a2229ed6b9f98356e6b0ea9e245f1d53bdbd616eb4c2babb87d7cf350b9 diff --git a/locale/el_GR_log b/locale/el_GR_log index 0d0fe70d0..b088e2756 100644 --- a/locale/el_GR_log +++ b/locale/el_GR_log @@ -1,6 +1,3 @@ -Thu Feb 08 2018 16:08:53 GMT+0200 (GTB Standard Time) -Hash changes: 1 +Thu Feb 08 2018 16:12:29 GMT+0200 (GTB Standard Time) +Hash changes: 0 -Snippet name:toCurrency - Old hash: d1c86c6f075b79b53b74aede9669101f1a07e89cc73ccabf347ad42674b1a33c - New hash: f00f4a2229ed6b9f98356e6b0ea9e245f1d53bdbd616eb4c2babb87d7cf350b9 diff --git a/test/isTravisCI/isTravisCI.test.js b/test/isTravisCI/isTravisCI.test.js index 603bffd6f..c807bcd67 100644 --- a/test/isTravisCI/isTravisCI.test.js +++ b/test/isTravisCI/isTravisCI.test.js @@ -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(); -}); \ No newline at end of file +}); diff --git a/test/testlog b/test/testlog index 79372decd..ad8982482 100644 --- a/test/testlog +++ b/test/testlog @@ -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