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/FunctionCallDataStub.ts
Normal file
17
tests/unit/shared/Stubs/FunctionCallDataStub.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { FunctionCallData, FunctionCallParametersData } from 'js-yaml-loader!@/*';
|
||||
|
||||
export class FunctionCallDataStub implements FunctionCallData {
|
||||
public function = 'callDatStubCalleeFunction';
|
||||
|
||||
public parameters: { [index: string]: string } = { testParameter: 'testArgument' };
|
||||
|
||||
public withName(functionName: string) {
|
||||
this.function = functionName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public withParameters(parameters: FunctionCallParametersData) {
|
||||
this.parameters = parameters;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user