Skip to content

Commit

Permalink
test(settings): simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
dabcoder committed Dec 20, 2024
1 parent a97ed17 commit 0590f68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/lib/settings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 0590f68

Please sign in to comment.