fix(core): update

This commit is contained in:
2020-09-24 00:32:54 +00:00
parent ffd5eb2e52
commit eb0ec04199
4 changed files with 63 additions and 4 deletions

View File

@@ -8,8 +8,9 @@ export {
let testServer: AgTestServer;
export const createTestServer = async (handlerArg: { new(envHandler: plugins.agSdk.AgEnvironment): plugins.agSdk.AAgHandler<any> }) => {
class AgEnvironement extends plugins.agSdk.AgEnvironment {
public qenv = new plugins.qenv.Qenv('./', './.nogit');
public async getEnvVar(nameArg: string) {
return '';
return this.qenv.getEnvVarOnDemand(nameArg);
}
}
testServer = new AgTestServer(new handlerArg(new AgEnvironement()));