deno/cli/js
Bartek Iwańczuk 8d96dffa41
refactor: rewrite testPerm into unitTest (#4231)
Rewrite "testPerm" helper function used for testing of internal 
runtime code. It's been renamed to "unitTest" and provides API that
is extensible in the future by accepting optional "UnitTestOptions" 
argument. "test" helper was also removed and replaced by
overloaded version of "unitTest" that takes only function argument.

"UnitTestOptions" currently supports "perms" and "skip"
options, where former works exactly as first argument to "testPerm"
did, while the latter allows to conditionally skip tests.
2020-03-04 17:31:14 +01:00
..
mixins refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
streams rename Deno.Err -> Deno.errors (#4093) 2020-02-24 15:48:35 -05:00
base64.ts Merge deno_cli_snapshots into deno_cli (#3064) 2019-10-04 20:28:51 -04:00
blob.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
blob_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
body.ts Turn on TS strict mode for deno_typescript (#3330) 2019-11-14 15:05:36 -05:00
body_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
buffer.ts refactor: remove unneeded ErrorKinds (#3936) 2020-02-21 10:36:13 -05:00
buffer_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
build.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
build_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
chmod.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
chmod_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
chown.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
chown_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
colors.ts refactor: rewrite deno test, add Deno.test() (#3865) 2020-02-11 12:01:56 +01:00
compiler.ts Fix JavaScript dependencies in bundles. (#4215) 2020-03-02 22:18:27 +01:00
compiler_api.ts feat: Support types compiler option in compiler APIs (#4155) 2020-02-27 11:27:00 -05:00
compiler_api_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
compiler_bootstrap.ts Support loading additional TS lib files (#3863) 2020-02-19 00:34:11 -05:00
compiler_bundler.ts Migrate internal bundles to System (#4233) 2020-03-04 14:26:00 +01:00
compiler_host.ts Fix JavaScript dependencies in bundles. (#4215) 2020-03-02 22:18:27 +01:00
compiler_imports.ts Fix JavaScript dependencies in bundles. (#4215) 2020-03-02 22:18:27 +01:00
compiler_sourcefile.ts Fix JavaScript dependencies in bundles. (#4215) 2020-03-02 22:18:27 +01:00
compiler_type_directives.ts Runtime Compiler API (#3442) 2020-01-08 09:17:44 -05:00
compiler_util.ts feat: Support types compiler option in compiler APIs (#4155) 2020-02-27 11:27:00 -05:00
console.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
console_table.ts Update to TypeScript 3.7 (#3275) 2019-11-13 13:42:34 -05:00
console_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
copy_file.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
copy_file_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
core.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
custom_event.ts Add missing year ranges to copyright notices (#3582) 2020-01-02 18:41:59 -05:00
custom_event_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
decode_utf8.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
deno.ts Rename Option -> Options (#4226) 2020-03-02 21:24:42 +01:00
diagnostics.ts Runtime Compiler API (#3442) 2020-01-08 09:17:44 -05:00
diagnostics_util.ts change copyrights from 2019 to 2020 (#3733) 2020-01-21 10:01:55 -05:00
dir.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
dir_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
dispatch.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
dispatch_json.ts refactor(cli/js): Replace constructError() with getErrorClass() (#4189) 2020-02-29 19:04:10 +01:00
dispatch_json_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
dispatch_minimal.ts perf: use subarray instead of slice in dispatch minimal (#4180) 2020-03-01 17:17:59 -05:00
dispatch_minimal_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
dom_file.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
dom_types.ts Make fetch API more standards compliant (#3667) 2020-02-03 15:54:47 +01:00
dom_util.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
encode_utf8.ts perf: TextEncoder.encode improvement (#3596) 2020-01-04 17:00:03 -05:00
error_stack.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
error_stack_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
errors.ts refactor(cli/js): Replace constructError() with getErrorClass() (#4189) 2020-02-29 19:04:10 +01:00
event.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
event_target.ts refactor: remove unneeded ErrorKinds (#3936) 2020-02-21 10:36:13 -05:00
event_target_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
event_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
fetch.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
fetch_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
file_info.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
file_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
files.ts seek should return cursor position (#4211) 2020-03-02 11:44:46 -05:00
files_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
form_data.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
form_data_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
format_error.ts Do not convert exceptions to JSON and back (#4214) 2020-03-02 14:20:16 -08:00
format_error_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
fs_events.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
fs_events_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
get_random_values.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
get_random_values_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
globals.ts Do not convert exceptions to JSON and back (#4214) 2020-03-02 14:20:16 -08:00
globals_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
headers.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
headers_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
internals.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
internals_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
io.ts seek should return cursor position (#4211) 2020-03-02 11:44:46 -05:00
lib.deno.ns.d.ts Rename Option -> Options (#4226) 2020-03-02 21:24:42 +01:00
lib.deno.shared_globals.d.ts seek should return cursor position (#4211) 2020-03-02 11:44:46 -05:00
lib.deno.window.d.ts add window.self read-only property (#4131) 2020-02-26 11:49:38 +01:00
lib.deno.worker.d.ts Support loading additional TS lib files (#3863) 2020-02-19 00:34:11 -05:00
link.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
link_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
location.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
location_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
main.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
make_temp.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
make_temp_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
metrics.ts feat: update metrics to track different op types (#4221) 2020-03-02 19:13:36 +01:00
metrics_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
mkdir.ts Rename Option -> Options (#4226) 2020-03-02 21:24:42 +01:00
mkdir_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
mock_builtin.js Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
net.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
net_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
os.ts feat(std/node): add os.tmpdir() implementation (#4213) 2020-03-01 19:05:04 -05:00
os_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
performance.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
performance_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
permissions.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
permissions_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
plugins.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
process.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
process_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
rbtree.ts cli: replace timer map with red-black tree (#3218) 2019-10-31 17:11:58 -07:00
read_dir.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
read_dir_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
read_file.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
read_file_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
read_link.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
read_link_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
realpath.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
realpath_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
remove.ts Rename Option -> Options (#4226) 2020-03-02 21:24:42 +01:00
remove_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
rename.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
rename_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
repl.ts Do not convert exceptions to JSON and back (#4214) 2020-03-02 14:20:16 -08:00
request.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
request_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
resources.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
resources_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
runtime.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
runtime_main.ts Migrate internal bundles to System (#4233) 2020-03-04 14:26:00 +01:00
runtime_worker.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
signal_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
signals.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
stat.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
stat_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
symbols.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
symbols_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
symlink.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
symlink_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
test_util.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
testing.ts refactor: rewrite deno test, add Deno.test() (#3865) 2020-02-11 12:01:56 +01:00
text_encoding.ts refactor: remove unneeded ErrorKinds (#3936) 2020-02-21 10:36:13 -05:00
text_encoding_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
timers.ts add assertOps sanitizer in cli/js/ unit tests (#4209) 2020-03-03 18:22:53 +01:00
timers_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
tls.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
tls_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
truncate.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
truncate_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
ts_global.d.ts Support loading additional TS lib files (#3863) 2020-02-19 00:34:11 -05:00
tty.ts tty: Deno.setRaw(rid, mode) to turn on/off raw mode (#3958) 2020-02-26 01:01:24 -05:00
tty_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
types.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
unit_test_runner.ts stream output of js unit tests (#4146) 2020-02-26 20:33:18 +01:00
unit_tests.ts add assertOps sanitizer in cli/js/ unit tests (#4209) 2020-03-03 18:22:53 +01:00
url.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
url_search_params.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
url_search_params_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
url_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
util.ts fix: emit when bundle contains single module (#4042) 2020-02-19 22:35:21 -05:00
utime.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
utime_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
version.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
version_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00
workers.ts Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
write_file.ts Cleanup comments and internal variables (#4205) 2020-03-02 10:19:42 -05:00
write_file_test.ts refactor: rewrite testPerm into unitTest (#4231) 2020-03-04 17:31:14 +01:00