Skip to content

Commit

Permalink
fix: update test name
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgraeme committed Jan 27, 2025
1 parent 4ada1f0 commit d6953bd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/molecules/SectionHeader/SectionHeader.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { screen } from '@testing-library/react';
import '@testing-library/jest-dom';
import { screen } from '@testing-library/react';
import React from 'react';
import SectionHeader from '.';
import { render } from '../../__test__/test-utils';

describe('SectionHeader', () => {
describe('<SectionHeader />', () => {
it('matches snapshot', () => {
const { container } = render(
<SectionHeader title="Test" description="This is a test" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<SectionHeader /> matches snapshot 1`] = `
<div>
<div
class="css-view-175oi2r r-marginBottom-1ifxtd0"
>
<div
class="css-text-146c3p1 r-fontSize-1ui5ee8 r-marginBottom-5oul0u"
dir="auto"
style="font-weight: 700; color: rgb(0, 0, 0);"
>
Test
</div>
<div
class="css-text-146c3p1 r-fontSize-1x35g6"
dir="auto"
style="color: rgba(0, 0, 0, 0.8);"
>
This is a test
</div>
</div>
</div>
`;

exports[`SectionHeader matches snapshot 1`] = `
<div>
<div
Expand Down

0 comments on commit d6953bd

Please sign in to comment.