Skip to content

Commit 0bd735c

Browse files
author
Walker Leite
committed
test(server): fix test files
1 parent c932aaf commit 0bd735c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

template/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ describe('Project Index', () => {
1212
it('should serve client files', async() => {
1313
const res = await request(server).get('/index.html');
1414
expect(res.statusCode).toBe(200);
15-
});
15+
}, 10000);
1616
});

template/server/models/account.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ describe('Account unit', () => {
3939
expect(AccountMock.app.models.Email.send).toBeCalledWith(
4040
expect.objectContaining({
4141
to: infoMock.email,
42-
from: 'alpp <noreply@mydomain.com>',
43-
subject: '[alpp] Create a new password',
42+
from: expect.stringContaining(
43+
'noreply@mydomain.com'
44+
),
45+
subject: expect.stringContaining(
46+
'Create a new password'
47+
),
4448
html: expect.stringMatching(
4549
new RegExp(`${host}.*${infoMock.accessToken.id}`)
4650
),

0 commit comments

Comments
 (0)