Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addMessageMetaData test crashes #64

Open
avsetsin opened this issue Jul 15, 2022 · 0 comments
Open

addMessageMetaData test crashes #64

avsetsin opened this issue Jul 15, 2022 · 0 comments

Comments

@avsetsin
Copy link
Contributor

describe('addMessageMetaData', () => {
it('should add extra data to message', () => {
const message = { foo: 'bar' };
const result = guardianService.addMessageMetaData(message);
expect(result).toEqual(
expect.objectContaining({
...message,
app: { version: expect.any(String), name: expect.any(String) },
}),
);
});
});

addMessageMetaData test crashes under certain conditions, because it depends on the env environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant