isEnvMappingEmpty.spec.tsx 453 B

12345678910111213
  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 = {prod: {ok: 1, missed: 0, timeout: 0, error: 0, in_progress: 0}};
  9. expect(isEnvMappingEmpty(envMapping)).toEqual(false);
  10. });
  11. });