Skip to content

Commit 2ffee80

Browse files
committedFeb 19, 2025
test: split hash/serialize
1 parent 026db92 commit 2ffee80

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
 

‎test/hash.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { describe, expect, it } from "vitest";
2+
import { hash } from "../src";
3+
4+
describe("hash", () => {
5+
it("hash", () => {
6+
expect(hash({ foo: "bar" })).toMatchInlineSnapshot('"dZbtA7f0lK"');
7+
});
8+
});

‎test/ohash.test.ts renamed to ‎test/serialize.test.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { serialize, hash } from "../src";
3-
4-
describe("hash", () => {
5-
it("hash", () => {
6-
expect(hash({ foo: "bar" })).toMatchInlineSnapshot('"dZbtA7f0lK"');
7-
});
8-
});
2+
import { serialize } from "../src";
93

104
describe("serialize", () => {
115
it("basic object", () => {

0 commit comments

Comments
 (0)
Please sign in to comment.