remove membership from user

This commit is contained in:
Hongbo Wu
2022-07-22 11:01:06 +08:00
committed by Jackson Harper
parent ea9d98aa95
commit bab96aaa1e
11 changed files with 35 additions and 46 deletions

View File

@ -169,9 +169,9 @@ describe('auth router', () => {
password = correctPassword
})
it('redirects to waitlist page', async () => {
it('redirects to home page', async () => {
const res = await loginRequest(email, password).expect(302)
expect(res.header.location).to.endWith('/waitlist')
expect(res.header.location).to.endWith('/home')
})
it('set auth token in cookie', async () => {

View File

@ -42,7 +42,7 @@ describe('create user', () => {
expect(await getUserFollowing(user)).to.eql([adminUser])
expect(await getUserFollowers(adminUser)).to.eql([user])
expect(await getUserFollowing(adminUser)).to.eql([user])
}).timeout(10000)
})
it('creates profile when user exists but profile not', async () => {
after(async () => {