Skip to content

Commit

Permalink
fixup mixed case tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Harding <[email protected]>
  • Loading branch information
klutchell committed Dec 18, 2024
1 parent ea2b541 commit dbf4c70
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/unit/lib/plugins/environments.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ describe('Environments Plugin test suite', () => {
name: environment_name,
variables: [
{
name: 'TEST',
name: 'test',
value: 'test'
}
]
Expand All @@ -441,11 +441,11 @@ describe('Environments Plugin test suite', () => {
data: {
variables: [
{
name: 'TEST',
name: 'test',
value: 'old'
},
{
name: 'TEST2',
name: 'test2',
value: 'test2'
}
]
Expand All @@ -462,15 +462,15 @@ describe('Environments Plugin test suite', () => {
org,
repo,
environment_name: environment_name,
variable_name: 'TEST',
variable_name: expect.stringMatching(/test/i),
value: 'test'
}));
})
})
})

// patch variable
describe('When there are existing lowercase variables and one requires an update', () => {
describe('When there are existing mixed-case variables and one requires an update', () => {
it('detect divergence and add the variable', async () => {
//arrange
environment_name = 'variables_environment'
Expand All @@ -480,7 +480,7 @@ describe('Environments Plugin test suite', () => {
name: environment_name,
variables: [
{
name: 'TEST',
name: 'test',
value: 'test'
}
]
Expand All @@ -507,11 +507,11 @@ describe('Environments Plugin test suite', () => {
data: {
variables: [
{
name: 'test',
name: 'TEST',
value: 'old'
},
{
name: 'test2',
name: 'TEST2',
value: 'test2'
}
]
Expand All @@ -528,7 +528,7 @@ describe('Environments Plugin test suite', () => {
org,
repo,
environment_name: environment_name,
variable_name: 'TEST',
variable_name: expect.stringMatching(/test/i),
value: 'test'
}));
})
Expand Down Expand Up @@ -768,7 +768,7 @@ describe('Environments Plugin test suite', () => {
name: 'variables_environment',
variables: [
{
name: 'TEST',
name: 'test',
value: 'test'
}
]
Expand Down Expand Up @@ -910,7 +910,7 @@ describe('Environments Plugin test suite', () => {
org,
repo,
environment_name: 'variables_environment',
name: 'TEST',
name: 'test',
value: 'test'
}));

Expand Down Expand Up @@ -972,7 +972,7 @@ describe('Environments Plugin test suite', () => {
name: 'variables_environment',
variables: [
{
name: 'TEST',
name: 'test',
value: 'test'
}
]
Expand Down Expand Up @@ -1027,7 +1027,7 @@ describe('Environments Plugin test suite', () => {
name: 'new-variables',
variables: [
{
name: 'TEST',
name: 'test',
value: 'test'
}
]
Expand Down Expand Up @@ -1169,7 +1169,7 @@ describe('Environments Plugin test suite', () => {
org,
repo,
environment_name: 'variables_environment',
name: 'TEST',
name: 'test',
value: 'test'
}));

Expand Down

0 comments on commit dbf4c70

Please sign in to comment.