We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In this test: https://github.com/monstar-lab-oss/nestjs-starter-rest-api/blob/master/src/article/repositories/article.repository.spec.ts#L51
I think that this test does not work as expected, because if the repository does not throw an exception, the assertion will not be executed at all.
I think the right pattern would be like this:
let gotException: any = null try { await repository.foo() } catch (e) { gotException = e } finally { expect(gotException).not.toBe(null); expect(gotException.constructor).toBe(NotFoundException); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In this test: https://github.com/monstar-lab-oss/nestjs-starter-rest-api/blob/master/src/article/repositories/article.repository.spec.ts#L51
I think that this test does not work as expected, because if the repository does not throw an exception, the assertion will not be executed at all.
I think the right pattern would be like this:
The text was updated successfully, but these errors were encountered: