mirror of
https://github.com/denoland/deno.git
synced 2025-02-09 07:41:33 -05:00
![Rafael Vargas](/assets/img/avatar_default.png)
For some reason, the unit tests for Deno.remove() were not being imported to unit_tests.ts and, consequently, not being executed. Thus, I imported them, refactored some existent ones and wrote new ones for the symlink removal case. Since the creation of a symlink is not implemented for Windows yet, assertions that consider this state were added when the tests are executed in this OS.
69 lines
1.9 KiB
TypeScript
69 lines
1.9 KiB
TypeScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
|
|
// This test is executed as part of tools/test.py
|
|
// But it can also be run manually: ./target/debug/deno cli/js/unit_tests.ts
|
|
|
|
import "./blob_test.ts";
|
|
import "./body_test.ts";
|
|
import "./buffer_test.ts";
|
|
import "./build_test.ts";
|
|
import "./chmod_test.ts";
|
|
import "./chown_test.ts";
|
|
import "./compiler_api_test.ts";
|
|
import "./console_test.ts";
|
|
import "./copy_file_test.ts";
|
|
import "./custom_event_test.ts";
|
|
import "./dir_test.ts";
|
|
import "./dispatch_json_test.ts";
|
|
import "./error_stack_test.ts";
|
|
import "./event_test.ts";
|
|
import "./event_target_test.ts";
|
|
import "./fetch_test.ts";
|
|
import "./file_test.ts";
|
|
import "./files_test.ts";
|
|
import "./form_data_test.ts";
|
|
import "./get_random_values_test.ts";
|
|
import "./globals_test.ts";
|
|
import "./headers_test.ts";
|
|
import "./internals_test.ts";
|
|
import "./link_test.ts";
|
|
import "./location_test.ts";
|
|
import "./make_temp_dir_test.ts";
|
|
import "./metrics_test.ts";
|
|
import "./mixins/dom_iterable_test.ts";
|
|
import "./mkdir_test.ts";
|
|
import "./net_test.ts";
|
|
import "./os_test.ts";
|
|
import "./process_test.ts";
|
|
import "./realpath_test.ts";
|
|
import "./read_dir_test.ts";
|
|
import "./read_file_test.ts";
|
|
import "./read_link_test.ts";
|
|
import "./remove_test.ts";
|
|
import "./rename_test.ts";
|
|
import "./request_test.ts";
|
|
import "./resources_test.ts";
|
|
import "./signal_test.ts";
|
|
import "./stat_test.ts";
|
|
import "./symbols_test.ts";
|
|
import "./symlink_test.ts";
|
|
import "./text_encoding_test.ts";
|
|
import "./timers_test.ts";
|
|
import "./tls_test.ts";
|
|
import "./truncate_test.ts";
|
|
import "./url_test.ts";
|
|
import "./url_search_params_test.ts";
|
|
import "./utime_test.ts";
|
|
import "./write_file_test.ts";
|
|
import "./performance_test.ts";
|
|
import "./permissions_test.ts";
|
|
import "./version_test.ts";
|
|
|
|
import { runIfMain } from "../../std/testing/mod.ts";
|
|
|
|
async function main(): Promise<void> {
|
|
// Testing entire test suite serially
|
|
runIfMain(import.meta);
|
|
}
|
|
|
|
main();
|