Move stubs from ./stubs to ./shared/Stubs
Gathers all shared test code in single place.
This commit is contained in:
17
tests/unit/shared/Stubs/LanguageSyntaxStub.ts
Normal file
17
tests/unit/shared/Stubs/LanguageSyntaxStub.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { ILanguageSyntax } from '@/domain/ScriptCode';
|
||||
|
||||
export class LanguageSyntaxStub implements ILanguageSyntax {
|
||||
public commentDelimiters = [];
|
||||
|
||||
public commonCodeParts = [];
|
||||
|
||||
public withCommentDelimiters(...delimiters: string[]) {
|
||||
this.commentDelimiters = delimiters;
|
||||
return this;
|
||||
}
|
||||
|
||||
public withCommonCodeParts(...codeParts: string[]) {
|
||||
this.commonCodeParts = codeParts;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user