mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
wip: code formatting nits continued
This commit is contained in:
14
test/divide.spec.js
Normal file
14
test/divide.spec.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import divide from '../src/divide';
|
||||
|
||||
describe('divide', () => {
|
||||
it('should divide two numbers', () => {
|
||||
expect(divide(6, 4)).toBe(1.5);
|
||||
expect(divide(-6, 4)).toBe(-1.5);
|
||||
expect(divide(-6, -4)).toBe(1.5);
|
||||
});
|
||||
|
||||
it('should coerce arguments to numbers', () => {
|
||||
expect(divide('6', '4')).toBe(1.5);
|
||||
expect(divide('x', 'y')).toEqual(NaN);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user