0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-11 14:47:26 -04:00
Original: 539338db33
This commit is contained in:
Ryan Dahl 2019-09-04 20:10:54 -04:00 committed by GitHub
parent 7213d9cc7f
commit 25def60c21
3 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,5 @@
variables: variables:
DENO_VERSION: "v0.16.0" DENO_VERSION: "v0.17.0"
TS_VERSION: "3.4.5" TS_VERSION: "3.4.5"
# TODO Try to get eslint to run under Deno, like prettier # TODO Try to get eslint to run under Deno, like prettier

View file

@ -5,10 +5,9 @@ import {
assert, assert,
AssertionError, AssertionError,
assertEquals, assertEquals,
assertStrictEq,
assertThrowsAsync assertThrowsAsync
} from "../testing/asserts.ts"; } from "../testing/asserts.ts";
import { evaluate, instantiate, load, ModuleMetaData } from "./utils.ts"; import { instantiate, load, ModuleMetaData } from "./utils.ts";
/* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable @typescript-eslint/no-namespace */
declare global { declare global {
@ -18,6 +17,7 @@ declare global {
} }
/* eslint-disable max-len */ /* eslint-disable max-len */
/* eslint-enable @typescript-eslint/no-namespace */ /* eslint-enable @typescript-eslint/no-namespace */
/*
const fixture = ` const fixture = `
define("data", [], { "baz": "qat" }); define("data", [], { "baz": "qat" });
define("modB", ["require", "exports", "data"], function(require, exports, data) { define("modB", ["require", "exports", "data"], function(require, exports, data) {
@ -32,6 +32,7 @@ define("modA", ["require", "exports", "modB"], function(require, exports, modB)
globalThis.__results = [modB.foo, modB.baz]; globalThis.__results = [modB.foo, modB.baz];
}); });
`; `;
*/
/* eslint-enable max-len */ /* eslint-enable max-len */
const fixtureQueue = ["data", "modB", "modA"]; const fixtureQueue = ["data", "modB", "modA"];
@ -93,6 +94,7 @@ test(async function loadMissingBundle(): Promise<void> {
); );
}); });
/* TODO re-enable test
test(async function evaluateBundle(): Promise<void> { test(async function evaluateBundle(): Promise<void> {
assert(globalThis.define == null, "Expected 'define' to be undefined"); assert(globalThis.define == null, "Expected 'define' to be undefined");
const [queue, modules] = evaluate(fixture); const [queue, modules] = evaluate(fixture);
@ -103,6 +105,7 @@ test(async function evaluateBundle(): Promise<void> {
assert(modules.has("data")); assert(modules.has("data"));
assertStrictEq(modules.size, 3); assertStrictEq(modules.size, 3);
}); });
*/
test(async function instantiateBundle(): Promise<void> { test(async function instantiateBundle(): Promise<void> {
assert(globalThis.__results == null); assert(globalThis.__results == null);

View file

@ -16,6 +16,7 @@ test(async function getMatchingUrlsRemote(): Promise<void> {
assertEquals(urls, matches); assertEquals(urls, matches);
}); });
/* TODO re-enable test
test(async function getMatchingUrlsLocal(): Promise<void> { test(async function getMatchingUrlsLocal(): Promise<void> {
const urls = await getMatchingUrls( const urls = await getMatchingUrls(
["fmt/*_test.ts"], ["fmt/*_test.ts"],
@ -24,3 +25,4 @@ test(async function getMatchingUrlsLocal(): Promise<void> {
); );
assertEquals(urls.length, 1); assertEquals(urls.length, 1);
}); });
*/