Skip to content

Commit

Permalink
test: fix usage of deleteUser
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Oct 17, 2023
1 parent 3b2e3e5 commit 48190c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/meteor/tests/end-to-end/api/10-subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,22 +236,22 @@ describe('[Subscriptions]', function () {
before(async () => {
user = await createUser({ username: 'testthread123', password: 'testthread123' });
threadUserCredentials = await login('testthread123', 'testthread123');
request

const res = await request
.post(api('chat.sendMessage'))
.set(threadUserCredentials)
.send({
message: {
rid: testChannel._id,
msg: 'Starting a Thread',
},
})
.end((_, res) => {
threadId = res.body.message._id;
});

threadId = res.body.message._id;
});

after((done) => {
deleteUser(user).then(done);
after(async () => {
await deleteUser(user);
});

it('should mark threads as read', async () => {
Expand Down

0 comments on commit 48190c5

Please sign in to comment.