defaultConfig.test.js 334 B

123456789101112
  1. import config from '../src/public/default-config'
  2. import configStub from '../stubs/defaultConfig.stub.js'
  3. test('the default config matches the stub', () => {
  4. expect(config).toEqual(configStub)
  5. })
  6. test('modifying the default config does not affect the stub', () => {
  7. config.theme = {}
  8. expect(config).not.toEqual(configStub)
  9. })