Update text in test descriptions and logging

Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
This commit is contained in:
Josh Dales
2023-05-11 16:35:05 -04:00
committed by GitHub
parent 9cfddd0144
commit 51cc5e079c
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ jest.mock('@actions/github');
describe('checkAllChangedFiles', () => { describe('checkAllChangedFiles', () => {
const changedFiles = ['foo.txt', 'bar.txt']; const changedFiles = ['foo.txt', 'bar.txt'];
describe('when the globs match every file that has changed', () => { describe('when the globs match every file that has been changed', () => {
const globs = ['*.txt']; const globs = ['*.txt'];
it('returns true', () => { it('returns true', () => {

View File

@@ -69,7 +69,7 @@ export function checkAllBranch(
): boolean { ): boolean {
const branchName = getBranchName(branchBase); const branchName = getBranchName(branchBase);
if (!branchName) { if (!branchName) {
core.debug(` no branch name`); core.debug(` cannot fetch branch name from the pull request`);
return false; return false;
} }

View File

@@ -126,7 +126,7 @@ export function getLabelConfigMapFromObject(
!configOptions.every(opts => typeof opts === 'object') !configOptions.every(opts => typeof opts === 'object')
) { ) {
throw Error( throw Error(
`found unexpected type for label ${label} (should be array of config options)` `found unexpected type for label '${label}' (should be array of config options)`
); );
} }
const matchConfigs = configOptions.reduce<MatchConfig[]>( const matchConfigs = configOptions.reduce<MatchConfig[]>(