Skip to content

Add tests for getOutputPath#19

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-tests-for-getoutputpath
Draft

Add tests for getOutputPath#19
Copilot wants to merge 3 commits intomainfrom
copilot/add-tests-for-getoutputpath

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 2, 2026

Adds unit tests for the getOutputPath function covering default path generation, custom output override, and edge cases.

Changes

  • src/lib_test.ts: 10 test cases covering:

    • Path construction with various directory structures (absolute, relative, current)
    • Custom output parameter override
    • Edge cases: negative degrees, decimal degrees, different extensions
  • deno.json: Added @std/assert dependency for standard Deno test assertions

Example

Deno.test("getOutputPath - with decimal degrees", () => {
  const result = getOutputPath({
    input: "/home/user/image.png",
    rationalAngle: { degrees: 26.565 },
  });
  assertEquals(result, "/home/user/image-tile-26.565.png");
});

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.deno.land
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)
  • jsr.io
    • Triggering command: /home/REDACTED/.deno/deno /home/REDACTED/.deno/deno test src/lib_test.ts (dns block)
    • Triggering command: /home/REDACTED/.deno/deno /home/REDACTED/.deno/deno test --allow-net --allow-read --allow-env src/lib_test.ts (dns block)
    • Triggering command: /home/REDACTED/.deno/deno /home/REDACTED/.deno/deno test --allow-net --allow-read --allow-env --lock=deno.lock src/lib_test.ts (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add tests for getOutputPath</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits March 2, 2026 18:26
Co-authored-by: marlonmarcello <1956448+marlonmarcello@users.noreply.github.com>
Co-authored-by: marlonmarcello <1956448+marlonmarcello@users.noreply.github.com>
Copilot AI changed the title [WIP] Add tests for getOutputPath Add tests for getOutputPath Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for getOutputPath

2 participants