Skip to content

Commit

Permalink
refact, please ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
npmstudy committed Oct 5, 2023
1 parent b4d7f61 commit 38cda00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/helloworld.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { test, describe } from "node:test";
import { it, describe } from "node:test";
import assert from "node:assert";

import { HelloWorld } from "../src/helloworld";
import { IPerson } from "..";

describe("test suite", function () {
test("test if works correctly", async function (t) {
it("test if works correctly", async function (t) {
const log = t.mock.method(global.console, "log");

assert.strictEqual(log.mock.callCount(), 0);
Expand All @@ -16,7 +16,7 @@ describe("test suite", function () {
assert.strictEqual(log.mock.callCount(), 1);
});

test("test if works incorrectly", async function () {
it("test if works incorrectly", async function () {
const cli: IPerson = new HelloWorld();
assert.rejects(async () => await cli.sayHi(), new Error("fail"));
});
Expand Down

0 comments on commit 38cda00

Please sign in to comment.