1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 01:59:06 -05:00

reenable test getMatchingUrlsLocal (denoland/deno_std#589)

Original: cfb0eb55ab
This commit is contained in:
Bartek Iwańczuk 2019-09-08 23:20:11 +02:00 committed by Ryan Dahl
parent f37df2d0d6
commit d7f3e28eed

View file

@ -2,9 +2,13 @@
import { test } from "./mod.ts";
import { assertEquals } from "../testing/asserts.ts";
import { getMatchingUrls } from "./runner.ts";
import { join } from "../fs/path/mod.ts";
const fileName = window.location.href;
const TEST_ROOT_PATH = fileName.slice(7, fileName.indexOf("testing")) + "fmt";
/**
* IMPORTANT: This file assumes it is run from root of repository.
*/
const cwd = Deno.cwd();
const TEST_ROOT_PATH = join(cwd, "fmt");
test(async function getMatchingUrlsRemote(): Promise<void> {
const matches = [
@ -16,7 +20,6 @@ test(async function getMatchingUrlsRemote(): Promise<void> {
assertEquals(urls, matches);
});
/* TODO re-enable test
test(async function getMatchingUrlsLocal(): Promise<void> {
const urls = await getMatchingUrls(
["fmt/*_test.ts"],
@ -25,4 +28,3 @@ test(async function getMatchingUrlsLocal(): Promise<void> {
);
assertEquals(urls.length, 1);
});
*/