Add more tests for fibonacci

This commit is contained in:
Christian James Welly 2019-05-24 08:23:24 +08:00
parent 55e23a12af
commit 347511516b
1 changed files with 6 additions and 0 deletions

View File

@ -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);
});