Skip to content

Commit 70fdcfa

Browse files
Fix test, bump fake-seam-connect to 1.74.0
1 parent 604a0ae commit 70fdcfa

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"axios-retry": "^4.4.2"
9999
},
100100
"devDependencies": {
101-
"@seamapi/fake-seam-connect": "1.72.1",
101+
"@seamapi/fake-seam-connect": "1.74.0",
102102
"@seamapi/types": "1.294.0",
103103
"@types/eslint": "^8.44.2",
104104
"@types/node": "^20.8.10",

test/seam/connect/client-session-token.test.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,21 @@ test('SeamHttp: updateClientSessionToken returns instance authorized with a new
5656
const seam = SeamHttp.fromClientSessionToken(seed.seam_cst1_token, {
5757
endpoint,
5858
})
59-
const { token } = await seam.clientSessions.create({
59+
60+
const devices = await seam.devices.list()
61+
t.true(devices.length > 0)
62+
63+
const seamUsingApiKey = SeamHttp.fromApiKey(seed.seam_apikey2_token, {
64+
endpoint,
65+
})
66+
67+
const { token } = await seamUsingApiKey.clientSessions.create({
6068
user_identifier_key: 'some-new-user-identifier-key',
6169
})
6270

6371
await seam.updateClientSessionToken(token)
64-
const devices = await seam.devices.list()
65-
t.is(devices.length, 0)
72+
const devicesFromNewSession = await seam.devices.list()
73+
t.is(devicesFromNewSession.length, 0)
6674
})
6775

6876
test('SeamHttp: updateClientSessionToken fails if no existing clientSessionToken', async (t) => {

0 commit comments

Comments
 (0)