chore: fix liniting issue
This commit is contained in:
parent
6f0bac785b
commit
c27e717e0f
1 changed files with 2 additions and 4 deletions
|
|
@ -740,8 +740,7 @@ describe("repositoriesService.restoreSnapshot", () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
test("rejects protected targets even when the local agent is enabled", async () => {
|
test("rejects protected targets even when the local agent is enabled", async () => {
|
||||||
const { organizationId, userId, repositoryId, repositoryShortId, restoreMock } =
|
const { organizationId, userId, repositoryShortId, restoreMock } = await setupRestoreSnapshotScenario();
|
||||||
await setupRestoreSnapshotScenario();
|
|
||||||
const targetPath = nodePath.join(os.tmpdir(), "zerobyte-restore-target");
|
const targetPath = nodePath.join(os.tmpdir(), "zerobyte-restore-target");
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
|
|
@ -756,8 +755,7 @@ describe("repositoriesService.restoreSnapshot", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test("restores to a custom target outside protected roots", async () => {
|
test("restores to a custom target outside protected roots", async () => {
|
||||||
const { organizationId, userId, repositoryId, repositoryShortId, restoreMock } =
|
const { organizationId, userId, repositoryShortId, restoreMock } = await setupRestoreSnapshotScenario();
|
||||||
await setupRestoreSnapshotScenario();
|
|
||||||
const targetPath = await fs.mkdtemp(nodePath.join(process.cwd(), "restore-target-"));
|
const targetPath = await fs.mkdtemp(nodePath.join(process.cwd(), "restore-target-"));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue