Skip to content

Commit

Permalink
fix(class): filter spec templates
Browse files Browse the repository at this point in the history
  • Loading branch information
garritfra committed Jun 19, 2022
1 parent 8e4a812 commit d9e80d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/class/class.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ function generate(options: ClassOptions): Source {
options.spec
? noop()
: filter((path) => {
const specNamingConvention = options.specFileSuffix || 'spec';
const languageExtension = options.language || 'ts';
const suffix = `.${specNamingConvention}.${languageExtension}`;
const suffix = `.__specFileSuffix__.${languageExtension}`;
return !path.endsWith(suffix);
}),
template({
Expand Down

0 comments on commit d9e80d2

Please sign in to comment.