Skip to content

Commit

Permalink
rename for consistency and clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesrussell committed Jul 13, 2024
1 parent d4ee403 commit 1667c9b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { onMount } from 'svelte';
import NewsletterSignupForm from './sections/NewsletterSignupForm.svelte';
import BlogCards from './sections/BlogCards.svelte';
import WinSignupNews from './sections/WinSignupNews.svelte';
import WinBlog from './sections/WinBlog.svelte';
let newsletterX = 0;
let newsletterY = 0;
Expand All @@ -22,6 +22,6 @@
</svelte:head>

<section>
<NewsletterSignupForm x={newsletterX} y={newsletterY} />
<BlogCards x={blogCardsX} y={blogCardsY} />
<WinSignupNews x={newsletterX} y={newsletterY} />
<WinBlog x={blogCardsX} y={blogCardsY} />
</section>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { render, screen } from '@testing-library/svelte';
import userEvent from '@testing-library/user-event';
import { expect, test } from 'vitest';

import NewsletterSignupForm from './NewsletterSignupForm.svelte';
import WinSignupNews from './WinSignupNews.svelte';

test('initial form state', () => {
render(NewsletterSignupForm);
render(WinSignupNews);

const emailInput = screen.getByLabelText('Email:');
const nameInput = screen.getByLabelText('Name:');
Expand All @@ -19,7 +19,7 @@ test('initial form state', () => {

test('form submission', async () => {
const user = userEvent.setup();
render(NewsletterSignupForm);
render(WinSignupNews);

const emailInput = screen.getByLabelText('Email:');
const nameInput = screen.getByLabelText('Name:');
Expand Down

0 comments on commit 1667c9b

Please sign in to comment.