Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
neonidian committed Apr 24, 2022
2 parents 10f52c4 + 42f45c6 commit 4d60dd0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inputs:
description: 'Background color of the title'
required: false
status:
description: 'Status of the Github job or step'
description: 'Status of the GitHub job or step'
required: false

# For environment variables see - https://github.com/neonidian/teams-notify-build-status#environment-variables
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Main:', () => {
});

function titleBgValidationErrorText(invalidColor) {
return `Color: "${invalidColor}" is not supported. Allowed values: "${supportedColors.join(', ')}"`;
return `Color: "${invalidColor}" is not supported. Allowed values: "${supportedColors.join('", "')}"`;
}

test('Throws when not a valid title background color - foo', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/validation/validateTitleBackgroundColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function validateTitleBackgroundColour(backGroundColour) {
'skipped', 'blue',
];
if (allowedBGColors.indexOf(backGroundColour) === -1) {
throw new Error(`Color: "${backGroundColour}" is not supported. Allowed values: "${allowedBGColors.join(', ')}"`);
throw new Error(`Color: "${backGroundColour}" is not supported. Allowed values: "${allowedBGColors.join('", "')}"`);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/validation/validateTitleBackgroundColor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('Validate Title Background color:', () => {
];

function titleBgValidationErrorText(invalidColor) {
return `Color: "${invalidColor}" is not supported. Allowed values: "${supportedColors.join(', ')}"`;
return `Color: "${invalidColor}" is not supported. Allowed values: "${supportedColors.join('", "')}"`;
}

test('Throws when not a valid title background color - foo', () => {
Expand Down

0 comments on commit 4d60dd0

Please sign in to comment.