diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-03-10 04:30:38 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-09 12:30:38 -0500 |
commit | 034e2cc02829c9244b32232074c7a48af827a2fb (patch) | |
tree | bade01606a1ee076c1f753ce99c97ddb1e4edf30 /js/test_util.ts | |
parent | 8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff) |
Migrate from tslint to eslint for linting (#1905)
Diffstat (limited to 'js/test_util.ts')
-rw-r--r-- | js/test_util.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/test_util.ts b/js/test_util.ts index 7cc80e581..e683d32b1 100644 --- a/js/test_util.ts +++ b/js/test_util.ts @@ -52,12 +52,15 @@ function permFromString(s: string): DenoPermissions { }; } -export function testPerm(perms: DenoPermissions, fn: testing.TestFunction) { +export function testPerm( + perms: DenoPermissions, + fn: testing.TestFunction +): void { const name = `${fn.name}_${permToString(perms)}`; testing.test({ fn, name }); } -export function test(fn: testing.TestFunction) { +export function test(fn: testing.TestFunction): void { testPerm( { read: false, write: false, net: false, env: false, run: false }, fn |