odin-javascript-exercises/fibonacci/fibonacci.spec.js
Tatiana 18cffeb940 Revert "update cloning link"
This reverts commit 4c771f2e05.
2021-05-08 11:25:04 -07:00

31 lines
815 B
JavaScript

const fibonacci = require("./fibonacci");
describe("fibonacci", function () {
it("works", function () {
expect(fibonacci(4)).toEqual(3);
});
xit("works", function () {
expect(fibonacci(6)).toEqual(8);
});
xit("works", function () {
expect(fibonacci(10)).toEqual(55);
});
xit("works", function () {
expect(fibonacci(15)).toEqual(610);
});
xit("works", function () {
expect(fibonacci(25)).toEqual(75025);
});
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);
});
});