Przeglądaj źródła

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..
tags/v4.1.0
Phillip Johnsen 6 lat temu
rodzic
commit
65af14d1e0
2 zmienionych plików z 4 dodań i 5 usunięć
  1. +2
    -2
      .github/workflows/verify.yml
  2. +2
    -3
      test/module-systems/deno-test.ts

+ 2
- 2
.github/workflows/verify.yml Wyświetl plik

@@ -96,9 +96,9 @@ jobs:


steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: denolib/setup-deno@v1
- uses: denolib/setup-deno@master
with: with:
deno-version: 'v0.23.0'
deno-version: 'v1.0.0'
- run: deno --version - run: deno --version
- run: deno test --allow-net=deno.land test/module-systems/deno-test.ts - run: deno test --allow-net=deno.land test/module-systems/deno-test.ts




+ 2
- 3
test/module-systems/deno-test.ts Wyświetl plik

@@ -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"; import mustache from "../../mustache.mjs";


const view = { const view = {
@@ -9,7 +8,7 @@ const view = {
} }
}; };


test(function canUseMustache() {
Deno.test("can use mustache", () => {
assertEquals( assertEquals(
mustache.render("{{title}} spends {{calc}}", view), mustache.render("{{title}} spends {{calc}}", view),
"Joe spends 6" "Joe spends 6"


Ładowanie…
Anuluj
Zapisz