isEnvMappingEmpty.spec.tsx 478 B

123456789101112131415
  1. import {isEnvMappingEmpty} from './isEnvMappingEmpty';
  2. describe('isEnvMappingEmpty', function () {
  3. it('returns true for an empty env', function () {
  4. const envMapping = {};
  5. expect(isEnvMappingEmpty(envMapping)).toEqual(true);
  6. });
  7. it('returns false for a filled env', function () {
  8. const envMapping = {
  9. prod: {ok: 1, missed: 0, timeout: 0, error: 0, in_progress: 0, unknown: 0},
  10. };
  11. expect(isEnvMappingEmpty(envMapping)).toEqual(false);
  12. });
  13. });