File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
packages/render/src/shared/utils Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,19 @@ exports[`pretty > should prettify Preview component's complex characters correct
223
223
"
224
224
`;
225
225
226
+ exports[`pretty > should prettify base doucment correctly 1`] = `
227
+ "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
228
+ <html >
229
+ <head ></head >
230
+ <body style = " background-color:#fff;" >
231
+ <h1 >
232
+ whatever
233
+ </h1 >
234
+ <input placeholder = " hello world" />
235
+ </body >
236
+ </html >
237
+ "
238
+ `;
226
239
exports[`wrapText() 1`] = `
227
240
"Lorem
228
241
ipsum
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ describe('lenientParse()', () => {
17
17
describe ( 'pretty' , ( ) => {
18
18
it ( 'should prettify base doucment correctly' , ( ) => {
19
19
const document = `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head></head><body style="background-color:#fff;"><h1>whatever</h1><input placeholder="hello world"/></body></html>` ;
20
- expect ( pretty ( document , { lineBreak : '\n' } ) ) . toBe ( '' ) ;
20
+ expect ( pretty ( document , { lineBreak : '\n' } ) ) . toMatchSnapshot ( ) ;
21
21
} ) ;
22
22
23
23
// it("should prettify Preview component's complex characters correctly", async () => {
You can’t perform that action at this time.
0 commit comments