Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/drake/tests/utils_test.ts

Drake is a make-like task runner for Deno.
Go to Latest
File
import { assertEquals } from "https://deno.land/std@v0.34.0/testing/asserts.ts";import { glob, sh } from "../lib/utils.ts";
Deno.test( function globTest() { let files = glob("mod.ts"); assertEquals(files.length, 1); assertEquals(files[0], "./mod.ts"); files = glob("./lib/*.ts"); assertEquals( files.sort().toString(), ["./lib/tasks.ts", "./lib/help.ts", "./lib/utils.ts", "./lib/cli.ts"] .sort() .toString() ); });
Deno.test( async function shTest() { await sh("echo Hello"); });
await Deno.runTests();