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/ParameterDefinitionDataStub.ts
Normal file
17
tests/unit/shared/Stubs/ParameterDefinitionDataStub.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { ParameterDefinitionData } from 'js-yaml-loader!@/*';
|
||||
|
||||
export class ParameterDefinitionDataStub implements ParameterDefinitionData {
|
||||
public name: string;
|
||||
|
||||
public optional?: boolean;
|
||||
|
||||
public withName(name: string) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
public withOptionality(isOptional: boolean) {
|
||||
this.optional = isOptional;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user