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

10 lines
207 B
TypeScript

import { isEmpty } from './isEmpty';
test('Object is empty', function () {
expect(isEmpty({})).toBe(true);
});
test('Object is not empty', function () {
expect(isEmpty({ bob: true })).toBe(false);
});