Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dysfunc committed Nov 25, 2023
1 parent 36084dd commit e5de333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/component.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
exports[`Component > should render the component 1`] = `
<body>
<div>
<div
class="component svelte-1ieplvx"
<button
class="component svelte-1eibeh7"
>
Hello World
</div>
</button>
<!--&lt;Component&gt;-->
</div>
</body>
Expand Down
8 changes: 4 additions & 4 deletions src/component.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ describe('Component', () => {
});

it('should render the component', () => {
const { container } = TestHarness({ text: 'Hello World' });
const { container } = TestHarness({ content: 'Hello World' });
expect(container).toMatchSnapshot();
});

it('should render the correct text value', () => {
const { component, container } = TestHarness({ text: 'Mahalo!' });
it('should render the correct content value', () => {
const { component, container } = TestHarness({ content: 'Mahalo!' });
expect(container.innerHTML).toMatch('Mahalo!');
expect(component.text).toBe('Mahalo!');
expect(component.content).toBe('Mahalo!');
});
});

0 comments on commit e5de333

Please sign in to comment.