mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-26 00:57:05 +00:00
fix(studio): the rename note says to update the listed files by hand (#8763)
This commit is contained in:
@@ -308,7 +308,7 @@ describe("useFileManager renames", () => {
|
||||
it("names the files a rename left pointing at the old path", async () => {
|
||||
const showToast = await rename({ unchangedReferences: ["reference.js", "lib/load.mjs"] });
|
||||
expect(showToast).toHaveBeenCalledWith(
|
||||
"Still pointing at clip.mp4: reference.js, lib/load.mjs",
|
||||
"Renamed. These files still use the old name, so update them by hand: reference.js, lib/load.mjs",
|
||||
"info",
|
||||
);
|
||||
});
|
||||
@@ -318,7 +318,7 @@ describe("useFileManager renames", () => {
|
||||
unchangedReferences: ["a.js", "b.js", "c.js", "d.js", "e.js", "f.js", "g.js"],
|
||||
});
|
||||
expect(showToast).toHaveBeenCalledWith(
|
||||
"Still pointing at clip.mp4: a.js, b.js, c.js, d.js, e.js and 2 more",
|
||||
"Renamed. These files still use the old name, so update them by hand: a.js, b.js, c.js, d.js, e.js and 2 more",
|
||||
"info",
|
||||
);
|
||||
});
|
||||
|
||||
@@ -339,7 +339,7 @@ export function useFileManager({
|
||||
if (Array.isArray(unchanged) && unchanged.length > 0) {
|
||||
const more = unchanged.length > 5 ? ` and ${unchanged.length - 5} more` : "";
|
||||
showToast(
|
||||
`Still pointing at ${oldPath}: ${unchanged.slice(0, 5).join(", ")}${more}`,
|
||||
`Renamed. These files still use the old name, so update them by hand: ${unchanged.slice(0, 5).join(", ")}${more}`,
|
||||
"info",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user