Remove untildify

This commit is contained in:
Nick Cipollo
2025-12-02 08:29:48 -05:00
parent 23d2cc4c27
commit be9a4fac3a
9 changed files with 74 additions and 54 deletions

View File

@@ -3,7 +3,7 @@ const warnMock = jest.fn()
import { FileArtifactGlobber } from "../src/ArtifactGlobber"
import { Globber } from "../src/Globber"
import { Artifact } from "../src/Artifact"
import untildify = require("untildify")
import { expandTilde } from "../src/PathExpander"
const contentType = "raw"
const globMock = jest.fn()
@@ -39,7 +39,7 @@ describe("ArtifactGlobber", () => {
const expectedArtifacts = globResults.map((path) => new Artifact(path, contentType))
expect(globber.globArtifactString("~/path", "raw", false)).toEqual(expectedArtifacts)
expect(globMock).toHaveBeenCalledWith(untildify("~/path"))
expect(globMock).toHaveBeenCalledWith(expandTilde("~/path"))
expect(warnMock).not.toHaveBeenCalled()
})