utils/ts-src/isEmpty.test.ts

10 lines
207 B
TypeScript
Raw Normal View History

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