This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
FILES=$(deno fmt) | |
if [ -n "$FILES" ]; then | |
echo "formatted, adding files $FILES" | |
echo "$FILES" | xargs git add | |
fi | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
assert, | |
assertEquals, | |
} from "https://deno.land/std/testing/asserts.ts"; | |
// this passes | |
Deno.test("should be able to get text and body from a text response", async () => { | |
const res = new Response('hi') | |
assert(res.body) | |
assertEquals(await res.text(), 'hi') |
OlderNewer