From f88c4ca80a576398c0683ab1788a5369c40efaaa Mon Sep 17 00:00:00 2001 From: pemrouz Date: Sun, 14 Jun 2015 21:10:01 +0100 Subject: [PATCH] 100% coverage --- test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test.js b/test.js index c244878..c25a0f0 100644 --- a/test.js +++ b/test.js @@ -3,7 +3,12 @@ var expect = require('chai').expect describe('client', function() { - it('should detect running in node', function(){ + /* istanbul ignore next */ + typeof window !== 'undefined' && it('should detect running in browser', function(){ + expect(client).to.be.ok + }) + + typeof window === 'undefined' && it('should detect running in node', function(){ expect(client).to.not.be.ok })