
      import { Temporal } from "@js-temporal/polyfill";
      import { URLPattern } from "urlpattern-polyfill";
      globalThis.addEventListener = () => {};
    
import "../lookup-Dvhilldd.js";
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
import "../assert-MZs1qjMx.js";
import "../assert_instance_of-DHz7EHNU.js";
import { buildCollectionSynchronizationHeader, digest } from "../collection-BzWsN9pB.js";
import { test } from "../testing-cwlO8Sns.js";
import "../std__assert-DWivtrGR.js";
import "../assert_rejects-Ce45JcFg.js";
import "../assert_throws-BNXdRGWP.js";
import "../assert_not_equals-C80BG-_5.js";
import { decodeHex } from "byte-encodings/hex";

//#region src/federation/collection.test.ts
test("digest()", async () => {
	const uris = [
		new URL("https://testing.example.org/users/1"),
		new URL("https://testing.example.org/users/2"),
		new URL("https://testing.example.org/users/2")
	];
	const result = await digest(uris);
	assertEquals(result, decodeHex("c33f48cd341ef046a206b8a72ec97af65079f9a3a9b90eef79c5920dce45c61f"));
});
test("buildCollectionSynchronizationHeader()", async () => {
	const header = await buildCollectionSynchronizationHeader("https://testing.example.org/users/1/followers", ["https://testing.example.org/users/2", "https://testing.example.org/users/1"]);
	assertEquals(header, "collectionId=\"https://testing.example.org/users/1/followers\", url=\"https://testing.example.org/users/1/followers?base-url=https%3A%2F%2Ftesting.example.org%2F\", digest=\"c33f48cd341ef046a206b8a72ec97af65079f9a3a9b90eef79c5920dce45c61f\"");
});

//#endregion