Skip to content

Commit

Permalink
update test project fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Dec 5, 2024
1 parent 60b9baf commit 4fc464a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('AuthorCell', () => {

it('renders Failure successfully', async () => {
expect(() => {
render(<Failure error={new Error('Oh no')} />)
render(<Failure id={42} error={new Error('Oh no')} />)
}).not.toThrow()
})

Expand All @@ -36,7 +36,7 @@ describe('AuthorCell', () => {

it('renders Success successfully', async () => {
expect(() => {
render(<Success author={standard().author} />)
render(<Success id={42} author={standard().author} />)
}).not.toThrow()
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('BlogPostCell', () => {

it('renders Failure successfully', async () => {
expect(() => {
render(<Failure error={new Error('Oh no')} />)
render(<Failure id={42} error={new Error('Oh no')} />)
}).not.toThrow()
})

Expand All @@ -36,7 +36,7 @@ describe('BlogPostCell', () => {

it('renders Success successfully', async () => {
expect(() => {
render(<Success blogPost={standard().blogPost} />)
render(<Success id={42} blogPost={standard().blogPost} />)
}).not.toThrow()
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('BlogPostsCell', () => {

it('renders Failure successfully', async () => {
expect(() => {
render(<Failure error={new Error('Oh no')} />)
render(<Failure id={42} error={new Error('Oh no')} />)
}).not.toThrow()
})

Expand All @@ -36,7 +36,7 @@ describe('BlogPostsCell', () => {

it('renders Success successfully', async () => {
expect(() => {
render(<Success blogPosts={standard().blogPosts} />)
render(<Success id={42} blogPosts={standard().blogPosts} />)
}).not.toThrow()
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('WaterfallBlogPostCell', () => {

it('renders Failure successfully', async () => {
expect(() => {
render(<Failure error={new Error('Oh no')} />)
render(<Failure id={42} error={new Error('Oh no')} />)
}).not.toThrow()
})

Expand All @@ -36,7 +36,9 @@ describe('WaterfallBlogPostCell', () => {

it('renders Success successfully', async () => {
expect(() => {
render(<Success waterfallBlogPost={standard().waterfallBlogPost} />)
render(
<Success id={42} waterfallBlogPost={standard().waterfallBlogPost} />
)
}).not.toThrow()
})
})

0 comments on commit 4fc464a

Please sign in to comment.