diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 012652d..adbe435 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,3 +50,17 @@ jobs: - run: npm install -g npm - run: npm ci - run: npm run test:browser -- --browsers ${{ matrix.browser }} + + + deno: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: "v2.x" + - run: npm ci + - run: deno test test/deno_test.ts + diff --git a/test/deno_test.ts b/test/deno_test.ts index 6aeb6b9..fb5aa70 100755 --- a/test/deno_test.ts +++ b/test/deno_test.ts @@ -1,11 +1,12 @@ #!/usr/bin/env deno test /* eslint-disable */ -import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; +import { deepStrictEqual } from "node:assert"; +import { test } from "node:test"; import * as msgpack from "../mod.ts"; -Deno.test("Hello, world!", () => { +test("Hello, world!", () => { const encoded = msgpack.encode("Hello, world!"); const decoded = msgpack.decode(encoded); - assertEquals(decoded, "Hello, world!"); + deepStrictEqual(decoded, "Hello, world!"); });