summaryrefslogtreecommitdiff
path: root/app/infrastructure/__tests__/configuration_spec.js
blob: 98b3b97f0a65d2d25dbf5f1b5bd3deb4e3a3b03f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Configuration from '../configuration';

describe("Configuration", ()=> {
  let subject = null;

  beforeEach(()=> {
    subject = new Configuration('development');
  });

  it ("loads the specified configuration", function() {
    let apiHost='http://192.168.128.6:3000'

    expect(subject.value_for("API_HOST")).toEqual(apiHost)
  });
});