13 lines
324 B
TypeScript
13 lines
324 B
TypeScript
// Copyright 2017-2022 @polkadot/util authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { arrayUnzip } from '.';
|
|
|
|
describe('arrayUnzip', (): void => {
|
|
it('unzips entries', (): void => {
|
|
expect(
|
|
arrayUnzip([['a', 1], ['b', 2], ['c', 3]])
|
|
).toEqual([['a', 'b', 'c'], [1, 2, 3]]);
|
|
});
|
|
});
|