chore: generate
This commit is contained in:
parent
371ee321e0
commit
fcfd47602b
5 changed files with 98 additions and 38 deletions
|
|
@ -116,5 +116,10 @@ function read(file: string) {
|
|||
}
|
||||
|
||||
function exists(file: string) {
|
||||
return Effect.promise(() => fs.stat(file).then(() => true, () => false))
|
||||
return Effect.promise(() =>
|
||||
fs.stat(file).then(
|
||||
() => true,
|
||||
() => false,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,9 @@ describe("Repository", () => {
|
|||
expect(reference).toMatchObject({ host: "file", protocol: "file:", label: localPath })
|
||||
expect(reference && Repository.isFile(reference)).toBe(true)
|
||||
expect(reference && Repository.isRemote(reference)).toBe(false)
|
||||
expect(() => Repository.parseRemote(pathToFileURL(localPath).href)).toThrow(Repository.UnsupportedLocalRepositoryError)
|
||||
expect(() => Repository.parseRemote(pathToFileURL(localPath).href)).toThrow(
|
||||
Repository.UnsupportedLocalRepositoryError,
|
||||
)
|
||||
})
|
||||
|
||||
test("rejects unsafe remote references and branches with typed errors", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue