mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-09-20 11:01:30 +00:00
test: fix Windows path assertions (#422)
Amp-Thread-ID: https://ampcode.com/threads/T-01a0af62-d8be-7209-b38b-950badf6ef76 Closes: #394 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import * as path from "node:path";
|
||||
import { beforeEach, describe, expect, it, jest } from "@jest/globals";
|
||||
import * as semver from "semver";
|
||||
|
||||
@@ -450,7 +451,7 @@ describe("download-version", () => {
|
||||
|
||||
expect(mockExtractTar).toHaveBeenCalledWith("/tmp/downloaded");
|
||||
expect(mockCacheDir).toHaveBeenCalledWith(
|
||||
"/tmp/extracted/ruff-x86_64-unknown-linux-gnu",
|
||||
path.join("/tmp/extracted", "ruff-x86_64-unknown-linux-gnu"),
|
||||
"ruff",
|
||||
"0.15.8",
|
||||
"x86_64",
|
||||
|
||||
Reference in New Issue
Block a user