Skip to content

Commit 6636462

Browse files
committed
Fix Chapter.spec.js
1 parent 73ccb6b commit 6636462

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/components/TutorialsOverview/Chapter.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('Chapter', () => {
7878
it('renders an `.name` with dynamic heading tag and the name/number', () => {
7979
const name = wrapper.findComponent('.name');
8080
expect(name.exists()).toBe(true);
81-
expect(name.is('H3')).toBe(true);
81+
expect(name.is('h3')).toBe(true);
8282
expect(name.text()).toMatch(/tutorials\.sections\.chapter/);
8383
expect(name.attributes('aria-label')).toEqual('Foo - tutorials.sections.chapter');
8484

@@ -91,7 +91,7 @@ describe('Chapter', () => {
9191
it('renders the `.name` with H2 if volume has no name', async () => {
9292
await wrapper.setProps({ volumeHasName: false });
9393
const name = wrapper.findComponent('.name');
94-
expect(name.is('H2')).toBe(true);
94+
expect(name.is('h2')).toBe(true);
9595
});
9696

9797
it('renders a `ContentNode`', () => {

0 commit comments

Comments
 (0)