|
|
@ -131,7 +131,8 @@ const { test, run } = suite<HydrationTest>(async (config, cwd) => {
|
|
|
|
|
|
|
|
|
|
|
|
flushSync();
|
|
|
|
flushSync();
|
|
|
|
|
|
|
|
|
|
|
|
const normalize = (string: string) => string.trim().replace(/\r\n/g, '\n');
|
|
|
|
const normalize = (string: string) =>
|
|
|
|
|
|
|
|
string.trim().replaceAll('\r\n', '\n').replaceAll('/>', '>');
|
|
|
|
|
|
|
|
|
|
|
|
const expected = read(`${cwd}/_expected.html`) ?? rendered.html;
|
|
|
|
const expected = read(`${cwd}/_expected.html`) ?? rendered.html;
|
|
|
|
assert.equal(normalize(target.innerHTML), normalize(expected));
|
|
|
|
assert.equal(normalize(target.innerHTML), normalize(expected));
|
|
|
|