Skip to content

Commit

Permalink
test: add basic test for etymologies endpoint
Browse files Browse the repository at this point in the history
ArkhamCookie authored and ArkhamCookie committed Mar 19, 2024
1 parent 2dc4ab9 commit 4bcd7fb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/tests/etymologies-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env -S deno test --allow-read --allow-env --allow-net

import { assertExists } from 'assert'

import { etymologies } from '../mod.js'

Deno.test({
name: 'word/etymologies: default',
permissions: { read: true, env: true, net: true },
async fn() {
const response = await etymologies('hackable', {})
assertExists(response)
}
})

0 comments on commit 4bcd7fb

Please sign in to comment.