Skip to content

Commit

Permalink
ZETA-6942: Refactor and remove remaining snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieGreenman committed Oct 20, 2023
1 parent 1b6d850 commit 8dd88d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
11 changes: 9 additions & 2 deletions src/rz/html/append-html/append-html.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ describe('appendHtml' , () => {
});

it('should append html code inside of passed in optional element', () => {
const fileToBeAddedTo = readFileSync('src/rz/html/append-html/snapshots/append-html-into-element/append-html-into-element.html.snap').toString();
const fileToBeAddedTo = `<mat-toolbar class="GlobalHeader" color="primary">
<div>hello</div>
</mat-toolbar>
`

const editHtmlInput: EditHtmlInput = {
fileToBeAddedTo: fileToBeAddedTo,
Expand All @@ -37,7 +40,11 @@ describe('appendHtml' , () => {
]
};

const expected = readFileSync('src/rz/html/append-html/snapshots/append-html-into-element/append-html-into-element-output.html.snap').toString();
const expected = `<mat-toolbar class="GlobalHeader" color="primary">
<div>hello</div>
<div>test</div></mat-toolbar
>
`;
const newHtmlString = morphHtml(editHtmlInput);
expect(newHtmlString).toEqual(expected);
});
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 8dd88d8

Please sign in to comment.