fix legacy migration redaction assertion
This commit is contained in:
1 parent
944c674939
commit
2f0c0a07dd
1 file changed
+2
-2
@@ -54,7 +54,7 @@ describe("legacy custom widget migration prompt", () => {
|
|||||||
displayType: "customJsx",
|
displayType: "customJsx",
|
||||||
displayConfig: stringifySuperJson({
|
displayConfig: stringifySuperJson({
|
||||||
type: "customJsx",
|
type: "customJsx",
|
||||||
template: "<Text>Bearer sk-secret-123456</Text>",
|
template: "<Text>LEGACY_PRIVATE_MARKER Bearer sk-secret-123456</Text>",
|
||||||
}),
|
}),
|
||||||
enabled: true,
|
enabled: true,
|
||||||
createdAt: new Date(0),
|
createdAt: new Date(0),
|
||||||
@@ -65,7 +65,7 @@ describe("legacy custom widget migration prompt", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
expect(prompt).toContain("display configuration was intentionally omitted");
|
expect(prompt).toContain("display configuration was intentionally omitted");
|
||||||
expect(prompt).not.toContain("<Text>");
|
expect(prompt).not.toContain("LEGACY_PRIVATE_MARKER");
|
||||||
expect(prompt).not.toContain("Bearer sk-secret-123456");
|
expect(prompt).not.toContain("Bearer sk-secret-123456");
|
||||||
expect(prompt).not.toContain("sk-secret-123456");
|
expect(prompt).not.toContain("sk-secret-123456");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user