mirror of
https://github.com/kou029w/nodejs-hands-on.git
synced 2025-01-18 16:08:05 +00:00
9 lines
218 B
JavaScript
9 lines
218 B
JavaScript
import assert from "node:assert";
|
|
import test from "node:test";
|
|
|
|
const fetchData = () => Promise.resolve(42);
|
|
|
|
test("データは42", async () => {
|
|
const data = await fetchData();
|
|
assert.strictEqual(data, 42);
|
|
});
|