import { expect, test } from "bun:test";
import { parse } from "../src/index.ts";

test("parses declarative navigation preservation", () => {
  const ast = parse(
    `page Users { navigation { preserve = ["filters", "pagination", "scroll"] } view { <main /> } }`,
  );
  expect(ast.navigation.preserve).toBe('["filters", "pagination", "scroll"]');
});
