From 347511516bec7f252c973636bf6a3c69e1e1fe1c Mon Sep 17 00:00:00 2001 From: Christian James Welly Date: Fri, 24 May 2019 08:23:24 +0800 Subject: [PATCH] Add more tests for fibonacci --- fibonacci/fibonacci.spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fibonacci/fibonacci.spec.js b/fibonacci/fibonacci.spec.js index d7adebe..cafe796 100644 --- a/fibonacci/fibonacci.spec.js +++ b/fibonacci/fibonacci.spec.js @@ -19,6 +19,12 @@ describe('fibonacci', function() { xit('doesn\'t accept negatives', function() { expect(fibonacci(-25)).toEqual("OOPS"); }); + xit('DOES accept strings', function() { + expect(fibonacci("1")).toEqual(1); + }); + xit('DOES accept strings', function() { + expect(fibonacci("2")).toEqual(1); + }); xit('DOES accept strings', function() { expect(fibonacci("8")).toEqual(21); });