utils/ts-src/arrayFromObj.test.ts

8 lines
198 B
TypeScript
Raw Permalink Normal View History

2020-11-17 11:16:34 +00:00
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]);
});