odin-javascript-exercises/fibonacci/fibonacci.spec.js
Étienne Boisseau-Sierra 3a9251d55e Transform 'var' in 'let'
2018-08-07 11:25:16 +01:00

25 lines
629 B
JavaScript

let 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("8")).toEqual(21);
});
});