14 lines
501 B
JavaScript
14 lines
501 B
JavaScript
import { isEmpty } from '../src/helpers/object';
|
|
|
|
describe('Test my profil', () => {
|
|
test('It should response true when send undefined object to isEmpty', async () => {
|
|
expect(isEmpty()).toBe(true);
|
|
});
|
|
test('It should response true when send empty object to isEmpty', async () => {
|
|
expect(isEmpty({})).toBe(true);
|
|
});
|
|
test('It should response false when send empty object to isEmpty', async () => {
|
|
expect(isEmpty({ true: true })).toBe(false);
|
|
});
|
|
});
|