From e5de3335ba81c115a755b7c03f4f9575f026788d Mon Sep 17 00:00:00 2001 From: Kieran Boyle Date: Sat, 25 Nov 2023 10:35:43 -0800 Subject: [PATCH] initial commit --- src/component.snap.js | 6 +++--- src/component.test.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/component.snap.js b/src/component.snap.js index c579709..e07f40e 100644 --- a/src/component.snap.js +++ b/src/component.snap.js @@ -3,11 +3,11 @@ exports[`Component > should render the component 1`] = `
-
Hello World -
+
diff --git a/src/component.test.js b/src/component.test.js index 415efd7..35e7f2e 100644 --- a/src/component.test.js +++ b/src/component.test.js @@ -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!'); }); });