From aeec1b36a335c58f02a5d4aa546aa99e22247c5c Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 14 Feb 2018 00:28:56 +0100 Subject: [PATCH] fix CI --- npmextra.json | 3 +++ test/test.ts | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/npmextra.json b/npmextra.json index 5aed605..6d88a2d 100644 --- a/npmextra.json +++ b/npmextra.json @@ -1,4 +1,7 @@ { + "npmts": { + "coverageTreshold": 60 + }, "npmci": { "npmGlobalTools": [ "npmts" diff --git a/test/test.ts b/test/test.ts index 3db62a0..b562609 100644 --- a/test/test.ts +++ b/test/test.ts @@ -12,8 +12,8 @@ tap.test('should print a overview to console', async () => { }) tap.test('should get os', async () => { + let resultMac = await testEnv.isMacAsync() let resultLinux = await testEnv.isLinuxAsync() - let resultMac = await testEnv.isMacAsync let resultWindows = await testEnv.isWindowsAsync() const osModule = await import('os') if (resultMac) { @@ -29,4 +29,10 @@ tap.test('should get os', async () => { }) +tap.test('should state wether we are in CI', async () => { + if(process.env.CI) { + expect(testEnv.isCI).to.be.true() + } +}) + tap.start()