Move stubs from ./stubs to ./shared/Stubs
Gathers all shared test code in single place.
This commit is contained in:
10
tests/unit/shared/Stubs/PipelineCompilerStub.ts
Normal file
10
tests/unit/shared/Stubs/PipelineCompilerStub.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { IPipelineCompiler } from '@/application/Parser/Script/Compiler/Expressions/Pipes/IPipelineCompiler';
|
||||
|
||||
export class PipelineCompilerStub implements IPipelineCompiler {
|
||||
public compileHistory: Array<{ value: string, pipeline: string }> = [];
|
||||
|
||||
public compile(value: string, pipeline: string): string {
|
||||
this.compileHistory.push({ value, pipeline });
|
||||
return `value: ${value}"\n${pipeline}: ${pipeline}`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user