test("generates a warning frame with default options",()=>{
constframe=generateAutoGeneratedWarningFrame();
expect(frame).toMatch(/^#\s+WARNING: AUTO-GENERATED FILE - DO NOT EDIT!\s+#$/m);
expect(frame).toMatch(/^#\s+Please be advised that this is an auto-generated file and should NOT be modified. Any changes made to this file WILL BE OVERWRITTEN.\s+#$/m);
});
test("generates a warning frame with a custom message",()=>{
test("generates a warning frame with custom frame style",()=>{
constframe=generateAutoGeneratedWarningFrame({
style:{
lineStart:"/** ",
filler:"=",
lineEnd:" **/",
},
});
expect(frame).toMatch(/^\/\*\*\s=+\s\*\*\/$/m);
expect(frame).toMatch(/^\/\*\*\s+WARNING: AUTO-GENERATED FILE - DO NOT EDIT!\s+\*\*\/$/m);
expect(frame).toMatch(/^\/\*\*\s+Please be advised that this is an auto-generated file and should NOT be modified. Any changes made to this file WILL BE OVERWRITTEN.\s+\*\*\/$/m);
});
test("generates a warning frame respecting the lineWidth option",()=>{