Skip to content

Commit

Permalink
hotfix: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
d-exclaimation committed Sep 4, 2023
1 parent da834eb commit 875eadc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ssr/props.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @vitest-environment jsdom

import { afterEach, describe, it } from "vitest";
import { load, resource } from "../../src/export";
import { props, resource } from "../../src/export";

describe("Load SSR props", () => {
afterEach(() => {
Expand All @@ -20,7 +20,7 @@ describe("Load SSR props", () => {
<div id="target" sr-props='{"a": 1, "b": 2}'></div>
`;

const $a = load<{ a: number; b: number }>("target");
const $a = props<{ a: number; b: number }>("target");
expect($a.current).toEqual({ a: 1, b: 2 });
});

Expand All @@ -29,7 +29,7 @@ describe("Load SSR props", () => {
<div id="target"></div>
`;

const $a = load<{}>("target");
const $a = props<{}>("target");
expect($a.current).toEqual({});
});
});
Expand Down

0 comments on commit 875eadc

Please sign in to comment.