Skip to content

Commit 99e540b

Browse files
committed
Fix snapshot tests failing
1 parent 34fa4ef commit 99e540b

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

packages/components/TabList/src/TabList/__tests__/TabList.test.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as React from 'react';
22

3-
import { checkReRender } from '@fluentui-react-native/test-tools';
43
import * as renderer from 'react-test-renderer';
54

65
import Tab from '../../Tab/Tab';
@@ -87,16 +86,4 @@ describe('TabList component tests', () => {
8786
.toJSON();
8887
expect(tree).toMatchSnapshot();
8988
});
90-
91-
it('TabList re-renders correctly', () => {
92-
checkReRender(
93-
() => (
94-
<TabList>
95-
<Tab tabKey="1">Tab 1</Tab>
96-
<Tab tabKey="2">Tab 2</Tab>
97-
</TabList>
98-
),
99-
2,
100-
);
101-
});
10289
});

packages/components/TabList/src/TabList/__tests__/__snapshots__/TabList.test.tsx.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ exports[`TabList component tests TabList appearance 1`] = `
1515
"current": null,
1616
}
1717
}
18+
onKeyDown={[Function]}
1819
onLayout={[Function]}
1920
size="medium"
2021
style={
@@ -463,6 +464,7 @@ exports[`TabList component tests TabList default props 1`] = `
463464
"current": null,
464465
}
465466
}
467+
onKeyDown={[Function]}
466468
onLayout={[Function]}
467469
size="medium"
468470
style={
@@ -911,6 +913,7 @@ exports[`TabList component tests TabList disabled list 1`] = `
911913
"current": null,
912914
}
913915
}
916+
onKeyDown={[Function]}
914917
onLayout={[Function]}
915918
size="medium"
916919
style={
@@ -1359,6 +1362,7 @@ exports[`TabList component tests TabList orientation 1`] = `
13591362
"current": null,
13601363
}
13611364
}
1365+
onKeyDown={[Function]}
13621366
onLayout={[Function]}
13631367
size="medium"
13641368
style={
@@ -1804,6 +1808,7 @@ exports[`TabList component tests TabList selected key 1`] = `
18041808
"current": null,
18051809
}
18061810
}
1811+
onKeyDown={[Function]}
18071812
onLayout={[Function]}
18081813
selectedKey="1"
18091814
size="medium"
@@ -2253,6 +2258,7 @@ exports[`TabList component tests TabList size 1`] = `
22532258
"current": null,
22542259
}
22552260
}
2261+
onKeyDown={[Function]}
22562262
onLayout={[Function]}
22572263
size="large"
22582264
style={

0 commit comments

Comments
 (0)