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

Improve tests for throwing errors #2

Open
brainysmurf opened this issue Feb 24, 2021 · 0 comments
Open

Improve tests for throwing errors #2

brainysmurf opened this issue Feb 24, 2021 · 0 comments

Comments

@brainysmurf
Copy link
Contributor

Currently the api only allows to test that a function throws an error if a particular type.

Due to limitations in AppsScripts, the test can fail even though an error is actually thrown, since the isinstance test fails. An error objected created in the utgs library won't be an instance of an error object in the main project.

Also, error messages should also be exposed via the api, so a test can be do based on the message.

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