express/test/functions.test.js
2024-01-07 12:32:39 +01:00

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);
});
});