mirror of
https://github.com/trailbaseio/trailbase.git
synced 2025-12-21 09:29:44 -06:00
16 lines
341 B
TypeScript
16 lines
341 B
TypeScript
import { expect, test } from "vitest"
|
|
import { copyAndConvertRow } from "@/lib/convert";
|
|
|
|
type UnknownRow = { [key: string]: unknown };
|
|
|
|
test("utils", () => {
|
|
const x: UnknownRow = {
|
|
"foo": "test",
|
|
"bar": "test",
|
|
};
|
|
const y = copyAndConvertRow(x);
|
|
for (const key of Object.keys(x)) {
|
|
expect(x[key]).toBe(y[key]);
|
|
}
|
|
});
|