(effects: AuthEffects = this)
| 21 | } |
| 22 | |
| 23 | async getObservableApiKey(effects: AuthEffects = this) { |
| 24 | if (effects !== this) throw new Error("don't pass unrelated effects to mock effects methods"); |
| 25 | if (!this.observableApiKey) return null; |
| 26 | return {source: "test" as const, key: this.observableApiKey}; |
| 27 | } |
| 28 | async setObservableApiKey(info) { |
| 29 | this.setApiKeyDeferred.resolve(info); |
| 30 | this.observableApiKey = info?.key; |
no outgoing calls
no test coverage detected