chore: generate
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user