wip: code formatting nits continued

This commit is contained in:
jdalton
2023-09-16 22:59:56 -07:00
parent 0b28b7f7b6
commit b5c59317ea
421 changed files with 7354 additions and 9005 deletions

19
test/join.spec.js Normal file
View File

@@ -0,0 +1,19 @@
import join from '../src/join';
describe('join', () => {
const array = ['a', 'b', 'c'];
it('should return join all array elements into a string', () => {
expect(join(array, '~')).toBe('a~b~c');
});
it('should return an unwrapped value when implicitly chaining', () => {
const wrapped = _(array);
expect(wrapped.join('~')).toBe('a~b~c');
expect(wrapped.value()).toBe(array);
});
it('should return a wrapped value when explicitly chaining', () => {
expect(_(array).chain().join('~') instanceof _);
});
});