File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,21 @@ test('SeamHttp: updateClientSessionToken returns instance authorized with a new
56
56
const seam = SeamHttp . fromClientSessionToken ( seed . seam_cst1_token , {
57
57
endpoint,
58
58
} )
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 ( {
60
68
user_identifier_key : 'some-new-user-identifier-key' ,
61
69
} )
62
70
63
71
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 )
66
74
} )
67
75
68
76
test ( 'SeamHttp: updateClientSessionToken fails if no existing clientSessionToken' , async ( t ) => {
You can’t perform that action at this time.
0 commit comments