import assert from "node:assert/strict";
import { describe, it } from "node:test";
import { goLogin } from "./useNavigator.ts";

describe("useNavigator", () => {
  it("can navigate to login outside a component setup context", async () => {
    const resolved = await goLogin({ redirect: { name: "quick" } });

    assert.equal(resolved.name, "login");
    assert.equal(resolved.query.redirect, "/quick");
  });
});
