added "return" so tests dont terminate on failure and deleted env.jest

This commit is contained in:
Aster Fialla
2026-02-18 12:11:55 -05:00
parent 223292c2d3
commit 274f1ead15
3 changed files with 21 additions and 16 deletions

View File

@@ -68,11 +68,18 @@ describe('messageHelper', () => {
['3', 'hello', attachmentUrl, {}],
['3', '--hello', attachmentUrl,{}],
])('Member %s returns correct proxy', (specificAuthorId, content, attachmentUrl, expected) => {
messageHelper.parseProxyTags(specificAuthorId, content, attachmentUrl).then((res) => {
return messageHelper.parseProxyTags(specificAuthorId, content, attachmentUrl).then((res) => {
expect(res).toEqual(expected);
})
});
test('expect error to be thrown when no message is present', () => {
// Arrange
return messageHelper.parseProxyTags('1', '', null).catch((res) => {
expect(res).toEqual(new Error(enums.err.NO_MESSAGE_SENT_WITH_PROXY));
})
})
})