Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bin.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, it, vi } from "vitest";
import { expect, test, vi } from "vitest";

it("should print a fibonacci sequence", async () => {
test("prints the fibonacci sequence to stdout", async () => {
const spy = vi.spyOn(process.stdout, "write").mockReturnValue(true);

process.argv = ["node", "bin.js", "5"];
Expand Down
4 changes: 2 additions & 2 deletions src/lib.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, it } from "vitest";
import { expect, test } from "vitest";
import { fibonacciSequence } from "./lib.js";

it("should generate a fibonacci sequence", () => {
test("returns a fibonacci sequence of the given length", () => {
expect(fibonacciSequence(1)).toStrictEqual([1]);
expect(fibonacciSequence(2)).toStrictEqual([1, 1]);
expect(fibonacciSequence(5)).toStrictEqual([1, 1, 2, 3, 5]);
Expand Down
Loading