import ENVIROMENT, {
  getEnvironment,
  ENVIRONMENTS,
  getEnv
} from './environment';

describe('The environment service', () => {
  it('has support for PRODUCTION', () => {
    expect(getEnvironment('data.amsterdam.nl')).toBe(ENVIRONMENTS.PRODUCTION);
  });

  it('uses PRE_PRODUCTION on pre.data.amsterdam.nl', () => {
    expect(getEnvironment('pre.data.amsterdam.nl')).toBe(ENVIRONMENTS.PRE_PRODUCTION);
  });

  it('uses ACCEPTATION on acc.data.amsterdam.nl', () => {
    expect(getEnvironment('acc.data.amsterdam.nl')).toBe(ENVIRONMENTS.ACCEPTATION);
  });

  it('and a fallback to development for the rest', () => {
    expect(getEnvironment('localhost')).toBe(ENVIRONMENTS.DEVELOPMENT);
  });
});

import {
  getEnvironment,
  ENVIRONMENTS
} from './environment';

describe('The environment service', () => {
  it('has support for PRODUCTION', () => {
    expect(getEnvironment('data.amsterdam.nl')).toBe(ENVIRONMENTS.PRODUCTION);
  });

  it('uses PRE_PRODUCTION on pre.data.amsterdam.nl', () => {
    expect(getEnvironment('pre.data.amsterdam.nl')).toBe(ENVIRONMENTS.PRE_PRODUCTION);
  });

  it('uses ACCEPTATION on acc.data.amsterdam.nl', () => {
    expect(getEnvironment('acc.data.amsterdam.nl')).toBe(ENVIRONMENTS.ACCEPTATION);
  });

  it('and a fallback to development for the rest', () => {
    expect(getEnvironment('localhost')).toBe(ENVIRONMENTS.DEVELOPMENT);
  });
});

Remove unnecessary imports