From 6941da5240996631064344f227a456228612a60d Mon Sep 17 00:00:00 2001 From: bjarneo Date: Sat, 21 Jan 2017 08:57:20 +0100 Subject: [PATCH] should not be a string --- index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.test.js b/index.test.js index 9a186e4..0b96a09 100644 --- a/index.test.js +++ b/index.test.js @@ -34,7 +34,7 @@ describe('extract domain', () => { it('should throw syntax error exception if the argument is not string nor array', () => { try { - extractDomain('{}'); + extractDomain({}); } catch (e) { assert.equal(e.name, 'TypeError');