diff --git a/test/unit/lib/settings.test.js b/test/unit/lib/settings.test.js index 75ee1bd0..916b0a50 100644 --- a/test/unit/lib/settings.test.js +++ b/test/unit/lib/settings.test.js @@ -146,14 +146,14 @@ describe('Settings Tests', () => { beforeEach(() => { stubConfig = { repoConfigs: { - 'repository.yml': { repository: { name: 'repository', config: 'config1' } } + 'repository.yaml': { repository: { name: 'repository', config: 'config1' } } } } }) it('Picks up a repository defined in file using the .yaml extension', () => { const settings = createSettings(stubConfig) - settings.getRepoOverrideConfig(stubConfig.repoConfigs['repository.yaml'].repository.name) + const repoConfig = settings.getRepoOverrideConfig('repository') expect(typeof repoConfig).toBe('object') expect(repoConfig).not.toBeNull() @@ -165,14 +165,14 @@ describe('Settings Tests', () => { beforeEach(() => { stubConfig = { repoConfigs: { - 'repository.yaml': { repository: { name: 'repository', config: 'config1' } } + 'repository.yml': { repository: { name: 'repository', config: 'config1' } } } } }) it('Picks up a repository defined in file using the .yml extension', () => { const settings = createSettings(stubConfig) - const repoConfig = settings.getRepoOverrideConfig(stubConfig.repoConfigs['repository.yml'].repository.name) + const repoConfig = settings.getRepoOverrideConfig('repository') expect(typeof repoConfig).toBe('object') expect(repoConfig).not.toBeNull()