Skip to content

Commit

Permalink
fix(test): fix stub name look up
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed May 7, 2024
1 parent dbf4826 commit bc6cd18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/stubs/dhl_soap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class DHLSoap extends Stub {

constructor(courier?: Courier, kwargs?: { [key: string]: any }) {
super(courier, kwargs?.cfg, kwargs?.logger);
this.stub_defaults = this.cfg?.get(`stubs:DHLSoap:${courier?.id}`) ?? this.cfg?.get('stubs:DHLSoap:defaults');
this.stub_defaults = this.cfg?.get(`stubs:${this.type}:${courier?.id}`) ?? this.cfg?.get(`stubs:${this.type}:defaults`);
this.version = this.stub_defaults?.ordering?.version ?? [3, 4, 0];

this.status_codes = {
Expand Down Expand Up @@ -698,4 +698,4 @@ class DHLSoap extends Stub {
}
};

Stub.register(DHLSoap.constructor.name, DHLSoap);
Stub.register(DHLSoap.name, DHLSoap);
2 changes: 1 addition & 1 deletion src/stubs/dummy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ class Dummy extends Stub {
}
}

Stub.register(Dummy.constructor.name, Dummy);
Stub.register(Dummy.name, Dummy);

0 comments on commit bc6cd18

Please sign in to comment.