mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
14 lines
453 B
TypeScript
14 lines
453 B
TypeScript
import {isEnvMappingEmpty} from './isEnvMappingEmpty';
|
|
|
|
describe('isEnvMappingEmpty', function () {
|
|
it('returns true for an empty env', function () {
|
|
const envMapping = {};
|
|
expect(isEnvMappingEmpty(envMapping)).toEqual(true);
|
|
});
|
|
|
|
it('returns false for a filled env', function () {
|
|
const envMapping = {prod: {ok: 1, missed: 0, timeout: 0, error: 0, in_progress: 0}};
|
|
expect(isEnvMappingEmpty(envMapping)).toEqual(false);
|
|
});
|
|
});
|