File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -238,4 +238,9 @@ export class SeamHttpInvalidOptionsError extends Error {
238238 }
239239}
240240
241- export class SeamHttpMultiWorkspaceInvalidOptionsError extends SeamHttpInvalidOptionsError { }
241+ export class SeamHttpMultiWorkspaceInvalidOptionsError extends Error {
242+ constructor ( message : string ) {
243+ super ( `SeamHttpMultiWorkspace received invalid options: ${ message } ` )
244+ this . name = this . constructor . name
245+ }
246+ }
Original file line number Diff line number Diff line change @@ -30,6 +30,16 @@ test.serial(
3030 } ,
3131)
3232
33+ test . serial (
34+ 'SeamHttp: constructor checks for SEAM_API_KEY environment variable' ,
35+ ( t ) => {
36+ t . throws ( ( ) => new SeamHttp ( ) , {
37+ instanceOf : SeamHttpInvalidOptionsError ,
38+ message : / S E A M _ A P I _ K E Y / ,
39+ } )
40+ } ,
41+ )
42+
3343test . serial (
3444 'SeamHttp: apiKey option overrides environment variables' ,
3545 async ( t ) => {
You can’t perform that action at this time.
0 commit comments