utils/ts-src/arrayFromObj.test.ts
Martin Donnelly c30b36b3f6 init
2020-11-17 11:16:34 +00:00

8 lines
198 B
TypeScript

import { arrayFromObj } from './arrayFromObj';
test('It creates the proper array', function () {
const testObj = { a: 1, b: 2 };
expect(arrayFromObj(testObj, ['a', 'b'])).toEqual([1, 2]);
});