Skip to content

Commit

Permalink
test(Tabs): update assertions and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Sep 29, 2020
1 parent 2b55145 commit 8b6ef10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4904,6 +4904,9 @@ Map {
"isRequired": true,
"type": "string",
},
"scrollable": Object {
"type": "bool",
},
"selected": Object {
"isRequired": true,
"type": "bool",
Expand Down
8 changes: 2 additions & 6 deletions packages/react/src/components/Tabs/Tabs-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ describe('Tabs', () => {
});

it('renders expected classes on wrapping <div> by default', () => {
// TODO: swap assertions after next major version
// expect(wrapper.find('div').first().hasClass(`${prefix}--tabs`)).toBe(
expect(wrapper.find('div').at(1).hasClass(`${prefix}--tabs`)).toBe(
expect(wrapper.find('div').first().hasClass(`${prefix}--tabs`)).toBe(
true
);
});
Expand All @@ -70,9 +68,7 @@ describe('Tabs', () => {
</Tabs>
)
.find('div')
// TODO: swap .first() and .at(1) after next major version
// .first()
.at(1)
.first()
.hasClass(`${prefix}--tabs--container`)
).toBe(true);
});
Expand Down

0 comments on commit 8b6ef10

Please sign in to comment.