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/FunctionCodeStub.ts
Normal file
17
tests/unit/shared/Stubs/FunctionCodeStub.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { IFunctionCode } from '@/application/Parser/Script/Compiler/Function/ISharedFunction';
|
||||
|
||||
export class FunctionCodeStub implements IFunctionCode {
|
||||
public do = 'do code (function-code-stub)';
|
||||
|
||||
public revert? = 'revert code (function-code-stub)';
|
||||
|
||||
public withDo(code: string) {
|
||||
this.do = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public withRevert(revert: string) {
|
||||
this.revert = revert;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user