mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
344 B
TypeScript
15 lines
344 B
TypeScript
import { joinArray } from '../array-helper';
|
|
|
|
describe('array-helper', () => {
|
|
test('joinArray', () => {
|
|
expect(joinArray([1, 2, 3], '5')).toMatchObject([1, '5', 2, '5', 3]);
|
|
expect(joinArray([{ a: 1 }, { a: 2 }, { a: 3 }], '5')).toMatchObject([
|
|
{ a: 1 },
|
|
'5',
|
|
{ a: 2 },
|
|
'5',
|
|
{ a: 3 },
|
|
]);
|
|
});
|
|
});
|