Skip to content

Commit cb30c93

Browse files
committed
Make tests actually check user before and after
1 parent 660bd29 commit cb30c93

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/integration/user-store-test.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,21 @@ describe('UserStore (integration)', () => {
156156
let password = '12345'
157157

158158
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+
})
159166
.then(() => {
160167
return store.deleteUser(user)
161168
})
169+
.then(() => {
170+
return store.findUser(user.id)
171+
})
162172
.then(foundUser => {
163-
expect(foundUser.id).to.not.exist()
164-
expect(foundUser.email).to.not.exist()
173+
expect(foundUser).to.not.exist()
165174
})
166175
})
167176
})

0 commit comments

Comments
 (0)