From cf93aa5e906bbe8d1b40f705870c5ae6eebf38b1 Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Fri, 17 Jun 2016 09:46:38 +0100 Subject: [PATCH] Make sure we test all them functions too! --- test/lib/up.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lib/up.test.js b/test/lib/up.test.js index 30bf2e1..b91484c 100644 --- a/test/lib/up.test.js +++ b/test/lib/up.test.js @@ -24,6 +24,10 @@ describe('microboot/lib/up', function () { expect(callback).to.have.been.called }) + it('should succeed if passed valid phases but no callback', function () { + expect(up.bind(up, ['test/data/fake'])).to.not.throw() + }) + it('should search for phases based on CWD', function () { expect(up.bind(up, ['na'])).to.throw(process.cwd() + '/na') })