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 {
238
238
}
239
239
}
240
240
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(
30
30
} ,
31
31
)
32
32
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
+
33
43
test . serial (
34
44
'SeamHttp: apiKey option overrides environment variables' ,
35
45
async ( t ) => {
You can’t perform that action at this time.
0 commit comments