We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bfe433 commit 3ab6cbbCopy full SHA for 3ab6cbb
1 file changed
test/seam/connect/env.test.ts
@@ -315,6 +315,23 @@ test.serial(
315
env['SEAM_WORKSPACE_ID'] = seed.seed_workspace_1
316
const seam = new SeamHttp({
317
personalAccessToken: seed.seam_at1_token,
318
+ endpoint,
319
+ })
320
+ const device = await seam.devices.get({
321
+ device_id: seed.august_device_1,
322
323
+ t.is(device.workspace_id, seed.seed_workspace_1)
324
+ t.is(device.device_id, seed.august_device_1)
325
+ },
326
+)
327
+
328
+test.serial(
329
+ 'SeamHttp: workspaceId option overrides environment variables',
330
+ async (t) => {
331
+ const { seed, endpoint } = await getTestServer(t)
332
+ env['SEAM_PERSONAL_ACCESS_TOKEN'] = seed.seam_at1_token
333
+ env['SEAM_WORKSPACE_ID'] = 'some-invalid-workspace'
334
+ const seam = new SeamHttp({
335
workspaceId: seed.seed_workspace_1,
336
endpoint,
337
})
0 commit comments