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
test(permissions/mod): Add invalid case #1314
Conversation
permissions/mod_test.ts
Outdated
return grantOrThrow({ name: "nett" } as any); | ||
}, | ||
TypeError, | ||
'The provided value "nett" is not a valid permission name', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why rename? |
I was wondering if the names of the logic files corresponded to the names of the test files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wafuwafu13 Thanks for your contribution. Left one comment
permissions/test.ts
Outdated
Deno.test({ | ||
name: "grantOrThrow invalid argument", | ||
fn() { | ||
assertThrowsAsync( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: assertThrowsAsync is now deprecated. Please use assertRejects instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wafuwafu13 LGTM. Thanks!
Changed filenametest.ts
->mod_test.ts