Skip to content

Commit bc6cd18

Browse files
author
Gerald Baulig
committed
fix(test): fix stub name look up
1 parent dbf4826 commit bc6cd18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/stubs/dhl_soap.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class DHLSoap extends Stub {
317317

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

323323
this.status_codes = {
@@ -698,4 +698,4 @@ class DHLSoap extends Stub {
698698
}
699699
};
700700

701-
Stub.register(DHLSoap.constructor.name, DHLSoap);
701+
Stub.register(DHLSoap.name, DHLSoap);

src/stubs/dummy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ class Dummy extends Stub {
3434
}
3535
}
3636

37-
Stub.register(Dummy.constructor.name, Dummy);
37+
Stub.register(Dummy.name, Dummy);

0 commit comments

Comments
 (0)