Skip to content

Commit

Permalink
Expects readme files in template-globs
Browse files Browse the repository at this point in the history
  • Loading branch information
hanseartic committed Aug 23, 2023
1 parent e63ab54 commit 047888a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/glob-patterns.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ describe('glob patterns tests', () => {

const result = getIncludePatterns(args);

expect(result).toEqual(['action.{yml,yaml}', 'LICENSE']);
expect(result).toEqual(['action.{yml,yaml}', 'LICENSE', 'README{,.md}']);
});

it('returns a javascript-action pattern when template is javascript-action', () => {
const args = { template: 'javascript-action', include: '' };

const result = getIncludePatterns(args);

expect(result).toEqual(['action.{yml,yaml}', 'dist/**', 'LICENSE']);
expect(result).toEqual(['action.{yml,yaml}', 'dist/**', 'LICENSE', 'README{,.md}']);
});

it('throws an error when an invalid template is specified', () => {
Expand Down Expand Up @@ -74,6 +74,7 @@ describe('glob patterns tests', () => {
'action.{yml,yaml}',
'dist/**',
'LICENSE',
'README{,.md}',
'README.md',
'!src/*.ts',
]);
Expand Down

0 comments on commit 047888a

Please sign in to comment.