From 047888a63ed1a75cf6d1e5c6610b9a8ef4a39c2b Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 23 Aug 2023 14:53:31 +0200 Subject: [PATCH] Expects readme files in template-globs --- test/glob-patterns.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/glob-patterns.spec.ts b/test/glob-patterns.spec.ts index bfae728..83c18aa 100644 --- a/test/glob-patterns.spec.ts +++ b/test/glob-patterns.spec.ts @@ -19,7 +19,7 @@ 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', () => { @@ -27,7 +27,7 @@ describe('glob patterns tests', () => { 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', () => { @@ -74,6 +74,7 @@ describe('glob patterns tests', () => { 'action.{yml,yaml}', 'dist/**', 'LICENSE', + 'README{,.md}', 'README.md', '!src/*.ts', ]);