From 65af14d1e01c74fc94337b9241909d7c153f5cfc Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Sat, 16 May 2020 23:38:36 +0200 Subject: [PATCH] Update deno version from v0.21 -> v1.0.0 in usage tests Because it seems the standard library for v0.21 that was used in the usage tests before has been removed, it returns 404 now.. --- .github/workflows/verify.yml | 4 ++-- test/module-systems/deno-test.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 8220851..5edf66e 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -96,9 +96,9 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: denolib/setup-deno@v1 + - uses: denolib/setup-deno@master with: - deno-version: 'v0.23.0' + deno-version: 'v1.0.0' - run: deno --version - run: deno test --allow-net=deno.land test/module-systems/deno-test.ts diff --git a/test/module-systems/deno-test.ts b/test/module-systems/deno-test.ts index 9325ae0..282a97d 100644 --- a/test/module-systems/deno-test.ts +++ b/test/module-systems/deno-test.ts @@ -1,5 +1,4 @@ -import { test } from "https://deno.land/std@v0.21.0/testing/mod.ts"; -import { assertEquals } from "https://deno.land/std@v0.21.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@v0.51.0/testing/asserts.ts"; import mustache from "../../mustache.mjs"; const view = { @@ -9,7 +8,7 @@ const view = { } }; -test(function canUseMustache() { +Deno.test("can use mustache", () => { assertEquals( mustache.render("{{title}} spends {{calc}}", view), "Joe spends 6"