GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(keyring): cover target-platform path rules from a foreign host · lidge-jun/opencodex@007aaba

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests/ci-workflows
    • keyring-smoke.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/ci-workflows/keyring-smoke.test.ts‎

Copy file name to clipboardExpand all lines: tests/ci-workflows/keyring-smoke.test.ts
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ describe("packaged keyring native binding", () => {
199199
.toEqual(["/opt/ocx/keyring/keyring.linux-x64-gnu.node"]);
200200
});
201201

202+
test("candidate paths follow the target platform's rules on any host", () => {
203+
expect(packagedKeyringCandidates({ root: "C:\\Program Files\\OpenCodex", platform: "win32", arch: "x64" }))
204+
.toEqual(["C:\\Program Files\\OpenCodex\\keyring\\keyring.win32-x64-msvc.node"]);
205+
expect(packagedKeyringCandidates({ root: "/opt/ocx", platform: "linux", arch: "x64" }))
206+
.toEqual(["/opt/ocx/keyring/keyring.linux-x64-gnu.node"]);
207+
});
208+
202209
test("loads only an existing deterministic packaged path and never consults cwd", () => {
203210
const binding = { Entry: class {}, AsyncEntry: class {} } as unknown as KeyringBinding;
204211
const calls: string[] = [];

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.