Skip to content

Commit

Permalink
test(*): add initial tests
Browse files Browse the repository at this point in the history
this is a baseline test so that `deno test` does not fail to find a test file in ci, but note that
for now this test should fail for more a few reasons which will be fixed in a subsequent commit
  • Loading branch information
andrewbrey authored and c4spar committed Aug 13, 2021
1 parent c2b7a5b commit c90ea2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
run: deno lint --unstable

- name: Run tests
run: deno test --unstable
run: deno test --unstable --allow-read --allow-env --allow-run
11 changes: 11 additions & 0 deletions test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/// <reference path="./types.d.ts" />

import { assertEquals } from "https://deno.land/std@0.104.0/testing/asserts.ts";

import { $ } from "./mod.ts";

Deno.test("$ works", async () => {
const result = await $`echo hello`;

assertEquals(result.stdout, "hello\n");
});

0 comments on commit c90ea2a

Please sign in to comment.