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/add.spec.js
Normal file
14
test/add.spec.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import add from '../src/add';
|
||||
|
||||
describe('add', () => {
|
||||
it('should add two numbers', () => {
|
||||
expect(add(6, 4)).toBe(10);
|
||||
expect(add(-6, 4)).toBe(-2);
|
||||
expect(add(-6, -4)).toBe(-10);
|
||||
});
|
||||
|
||||
it('should not coerce arguments to numbers', () => {
|
||||
expect(add('6', '4')).toBe('64');
|
||||
expect(add('x', 'y')).toBe('xy');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user