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

Add tests for Angular package #517

Merged
merged 1 commit into from Oct 15, 2021
Merged

Conversation

luismiramirez
Copy link
Member

@luismiramirez luismiramirez commented Oct 14, 2021

Angular package had no tests. This commits adds a simple one to test the
error handler class with mocks to see if AppSignal is called properly.

[skip changeset]

bump: "patch"
---

Add tests for Angular error handler
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need a changeset for this. We wouldn't release a new version of the package after adding tests.

Remind me to write a page/blog post about how changesets and changelogs work :)

framework: "Angular"
})

expect(appsignal.send).toBeCalled()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
expect(appsignal.send).toBeCalled()
expect(appsignal.send).toBeCalledWith(mock)

Would something like this work?

Angular package had no tests. This commits adds a simple one to test the
error handler class with mocks to see if AppSignal is called properly
@luismiramirez luismiramirez merged commit 21f5be4 into main Oct 15, 2021
@luismiramirez luismiramirez deleted the add-packages-missing-tests branch October 15, 2021 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants