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