@atproto/api 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/client/lexicons.ts
CHANGED
package/tests/agent.test.ts
CHANGED
|
@@ -54,6 +54,7 @@ describe('agent', () => {
|
|
|
54
54
|
expect(sessionInfo).toEqual({
|
|
55
55
|
did: res.data.did,
|
|
56
56
|
handle: res.data.handle,
|
|
57
|
+
email: 'user1@test.com',
|
|
57
58
|
})
|
|
58
59
|
|
|
59
60
|
expect(events.length).toEqual(1)
|
|
@@ -72,9 +73,10 @@ describe('agent', () => {
|
|
|
72
73
|
|
|
73
74
|
const agent1 = new AtpAgent({ service: server.url, persistSession })
|
|
74
75
|
|
|
76
|
+
const email = 'user2@test.com'
|
|
75
77
|
await agent1.createAccount({
|
|
76
78
|
handle: 'user2.test',
|
|
77
|
-
email
|
|
79
|
+
email,
|
|
78
80
|
password: 'password',
|
|
79
81
|
})
|
|
80
82
|
|
|
@@ -95,6 +97,7 @@ describe('agent', () => {
|
|
|
95
97
|
expect(sessionInfo).toEqual({
|
|
96
98
|
did: res1.data.did,
|
|
97
99
|
handle: res1.data.handle,
|
|
100
|
+
email,
|
|
98
101
|
})
|
|
99
102
|
|
|
100
103
|
expect(events.length).toEqual(2)
|
|
@@ -136,6 +139,7 @@ describe('agent', () => {
|
|
|
136
139
|
expect(sessionInfo).toEqual({
|
|
137
140
|
did: res1.data.did,
|
|
138
141
|
handle: res1.data.handle,
|
|
142
|
+
email: res1.data.email,
|
|
139
143
|
})
|
|
140
144
|
|
|
141
145
|
expect(events.length).toEqual(2)
|