mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04:00
f3751e498f
This commits adds adds "permissions" option to the test definitions which allows tests to run with different permission sets than the process's permission. The change will only be in effect within the test function, once the test has completed the original process permission set is restored. Test permissions cannot exceed the process's permission. You can only narrow or drop permissions, failure to acquire a permission results in an error being thrown and the test case will fail.
18 lines
589 B
Text
18 lines
589 B
Text
[WILDCARD]
|
|
running 14 tests
|
|
test read false ... ok [WILDCARD]
|
|
test read true ... ok [WILDCARD]
|
|
test write false ... ok [WILDCARD]
|
|
test write true ... ok [WILDCARD]
|
|
test net false ... ok [WILDCARD]
|
|
test net true ... ok [WILDCARD]
|
|
test env false ... ok [WILDCARD]
|
|
test env true ... ok [WILDCARD]
|
|
test run false ... ok [WILDCARD]
|
|
test run true ... ok [WILDCARD]
|
|
test plugin false ... ok [WILDCARD]
|
|
test plugin true ... ok [WILDCARD]
|
|
test hrtime false ... ok [WILDCARD]
|
|
test hrtime true ... ok [WILDCARD]
|
|
|
|
test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD]
|