From 288e7b0d8bb3e63198e401dec6432c1cc38edf53 Mon Sep 17 00:00:00 2001 From: Precious Oritsedere Date: Mon, 17 Aug 2026 12:25:49 +0100 Subject: [PATCH 1/2] Add vocabulary to package exports --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index acf9b79..4191e19 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ ".": "./dist/mod.js", "./acp": "./dist/acp/mod.js", "./solid": "./dist/solid/mod.js", - "./webid": "./dist/webid/mod.js" + "./webid": "./dist/webid/mod.js", + "./vocabulary": "./dist/vocabulary/mod.js" }, "files": [ "dist" From 565cbaeccc6e39ca303260580a57e9e2160e63e9 Mon Sep 17 00:00:00 2001 From: Precious Oritsedere Date: Mon, 17 Aug 2026 13:30:36 +0100 Subject: [PATCH 2/2] Add test for vocabulary package export --- test/unit/vocabulary.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/unit/vocabulary.test.ts diff --git a/test/unit/vocabulary.test.ts b/test/unit/vocabulary.test.ts new file mode 100644 index 0000000..5876bba --- /dev/null +++ b/test/unit/vocabulary.test.ts @@ -0,0 +1,13 @@ +import assert from "node:assert"; +import { describe, it } from "node:test"; +import { ACP } from "@solid/object/vocabulary"; + +describe("vocabulary export", () => { + it("exports ACP IRIs from @solid/object/vocabulary", () => { + assert.equal( + ACP.AccessControlResource, + "http://www.w3.org/ns/solid/acp#AccessControlResource", + ); + assert.equal(ACP.mode, "http://www.w3.org/ns/solid/acp#mode"); + }); +});