feat(release): 1.0.0
This commit is contained in:
12
tests/Hash.Test.ts
Normal file
12
tests/Hash.Test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { hashCodeQuery } from "../src/Hash.js";
|
||||
import { Options } from "../src/index.js";
|
||||
|
||||
describe("hashCodeQuery", () => {
|
||||
const filter = { name: { $eq: "Document 1" } };
|
||||
const options: Options = { sort: { name: 1 } };
|
||||
|
||||
test("return correct hash code", () => {
|
||||
const hashCode = hashCodeQuery(filter, options);
|
||||
expect(typeof hashCode).toBe("number");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user