Files
privacy.sexy/tests/unit/stubs/FunctionDataStub.ts
2021-01-13 16:31:20 +01:00

26 lines
703 B
TypeScript

import { FunctionData } from 'js-yaml-loader!*';
export class FunctionDataStub implements FunctionData {
public name = 'function data stub';
public code = 'function data stub code';
public revertCode = 'function data stub revertCode';
public parameters?: readonly string[];
public withName(name: string) {
this.name = name;
return this;
}
public withParameters(...parameters: string[]) {
this.parameters = parameters;
return this;
}
public withCode(code: string) {
this.code = code;
return this;
}
public withRevertCode(revertCode: string) {
this.revertCode = revertCode;
return this;
}
}