Skip to content

update normalizePath to work on widows #69

update normalizePath to work on widows

update normalizePath to work on widows #69

Triggered via push August 30, 2024 15:01
Status Cancelled
Total duration 52m 44s
Artifacts

test.yml

on: push
Matrix: macos
Matrix: ubuntu
Matrix: windows
Fit to window
Zoom out
Zoom in

Annotations

15 errors
__tests__/normalize.test.ts > should append trailing backslash if path ends with backslash on Windows systems: __tests__/normalize.test.ts#L32
AssertionError: expected '/home/runner/work/pdf-to-png-converte…' to equal 'C:\Users\test\Projects\pdf-to-png-con…' Expected: "C:\Users\test\Projects\pdf-to-png-converter\src\" Received: "/home/runner/work/pdf-to-png-converter/pdf-to-png-converter/C:\Users\test\Projects\pdf-to-png-converter\src\/" ❯ __tests__/normalize.test.ts:32:31
ubuntu (20)
Process completed with exit code 1.
ubuntu (18)
The job was canceled because "_20" failed.
__tests__/normalize.test.ts > should append trailing backslash if path ends with backslash on Windows systems: __tests__/normalize.test.ts#L32
AssertionError: expected '/home/runner/work/pdf-to-png-converte…' to equal 'C:\Users\test\Projects\pdf-to-png-con…' Expected: "C:\Users\test\Projects\pdf-to-png-converter\src\" Received: "/home/runner/work/pdf-to-png-converter/pdf-to-png-converter/C:\Users\test\Projects\pdf-to-png-converter\src\/" ❯ __tests__/normalize.test.ts:32:31
ubuntu (18)
The operation was canceled.
__tests__/normalize.test.ts > should normalize path ending with slash: __tests__/normalize.test.ts#L8
AssertionError: expected '/path/to/folder\' to equal '/path/to/folder/' Expected: "/path/to/folder/" Received: "/path/to/folder\" ❯ __tests__/normalize.test.ts:8:31
__tests__/normalize.test.ts > should normalize path without ending slash: __tests__/normalize.test.ts#L14
AssertionError: expected '/path/to/folder\' to equal '/path/to/folder/' Expected: "/path/to/folder/" Received: "/path/to/folder\" ❯ __tests__/normalize.test.ts:14:31
__tests__/normalize.test.ts > should normalize empty path: __tests__/normalize.test.ts#L20
AssertionError: expected '/a/pdf-to-png-converter/pdf-to-png-co…' to equal 'D:\a\pdf-to-png-converter\pdf-to-png-…' Expected: "D:\a\pdf-to-png-converter\pdf-to-png-converter/" Received: "/a/pdf-to-png-converter/pdf-to-png-converter\" ❯ __tests__/normalize.test.ts:20:31
__tests__/normalize.test.ts > should normalize root path: __tests__/normalize.test.ts#L26
AssertionError: expected '/\' to equal '/' Expected: "/" Received: "/\" ❯ __tests__/normalize.test.ts:26:31
__tests__/normalize.test.ts > should append trailing backslash if path ends with backslash on Windows systems: __tests__/normalize.test.ts#L32
AssertionError: expected '/a/pdf-to-png-converter/pdf-to-png-co…' to equal 'C:\Users\test\Projects\pdf-to-png-con…' Expected: "C:\Users\test\Projects\pdf-to-png-converter\src\" Received: "/a/pdf-to-png-converter/pdf-to-png-converter/C:\Users\test\Projects\pdf-to-png-converter\src\" ❯ __tests__/normalize.test.ts:32:31
windows (20)
Process completed with exit code 1.
windows (18)
The job was canceled because "_20" failed.
windows (18)
The operation was canceled.
macos (18)
The run was canceled by @dichovsky.
macos (20)
The run was canceled by @dichovsky.