We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 660bd29 commit cb30c93Copy full SHA for cb30c93
test/integration/user-store-test.js
@@ -156,12 +156,21 @@ describe('UserStore (integration)', () => {
156
let password = '12345'
157
158
return store.createUser(user, password)
159
+ .then(() => {
160
+ return store.findUser(user.id)
161
+ })
162
+ .then(foundUser => {
163
+ expect(foundUser.id).to.equal(user.id)
164
+ expect(foundUser.email).to.equal(user.email)
165
166
.then(() => {
167
return store.deleteUser(user)
168
})
169
170
171
172
.then(foundUser => {
- expect(foundUser.id).to.not.exist()
- expect(foundUser.email).to.not.exist()
173
+ expect(foundUser).to.not.exist()
174
175
176
0 commit comments