You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe('%table-doc',()=>{it('should render a table in HTML format',()=>{constexample=process(marked,fixture('table-doc')).html();expect(example).to.include('<td>id</td><td>INT</td>');expect(example).to.include('<td>title</td><td>VARCHAR(100)</td>');expect(example).to.include('<tr><td>email</td><td>VARCHAR(100)</td></tr>');});});
with
describe('%table-doc',()=>{it('should render a table in HTML format',()=>{constexample=process(marked,fixture('table-doc')).html();expect(format(example,{parser: 'html'})).toMatchSnapshot();});});
by using Jest's expect and snapshot test. format is prettier.format.
This ensures the output doesn't change unintentionally.
The text was updated successfully, but these errors were encountered:
Replace
with
by using Jest's
expect
and snapshot test.format
isprettier.format
.This ensures the output doesn't change unintentionally.
The text was updated successfully, but these errors were encountered: