diff --git a/packages/terra-navigation-side-menu/tests/jest/NavigationSideMenu.test.jsx b/packages/terra-navigation-side-menu/tests/jest/NavigationSideMenu.test.jsx index df95e9a9f1..659b62a333 100644 --- a/packages/terra-navigation-side-menu/tests/jest/NavigationSideMenu.test.jsx +++ b/packages/terra-navigation-side-menu/tests/jest/NavigationSideMenu.test.jsx @@ -66,6 +66,27 @@ describe('Layout', () => { expect(result).toMatchSnapshot(); }); + it('should render a drill-in variant of NavigationSideMenu with selectedKey', () => { + const result = enzymeIntl.mountWithIntl(( + {}} + routingStackBack={() => {}} + selectedMenuKey="menu" + variant="drill-in" + /> + )); + expect(result.prop('variant')).toEqual('drill-in'); + expect(result.find('IconDocuments')).toBeDefined(); + expect(result).toMatchSnapshot(); + }); + it('correctly applies the theme context className', () => { const result = enzymeIntl.mountWithIntl( diff --git a/packages/terra-navigation-side-menu/tests/jest/__snapshots__/NavigationSideMenu.test.jsx.snap b/packages/terra-navigation-side-menu/tests/jest/__snapshots__/NavigationSideMenu.test.jsx.snap index e3e10f1538..8552153ffc 100644 --- a/packages/terra-navigation-side-menu/tests/jest/__snapshots__/NavigationSideMenu.test.jsx.snap +++ b/packages/terra-navigation-side-menu/tests/jest/__snapshots__/NavigationSideMenu.test.jsx.snap @@ -1195,3 +1195,664 @@ exports[`Layout should render a NavigationSideMenu with selectedKey 1`] = ` variant="nav-side-menu" /> `; + +exports[`Layout should render a drill-in variant of NavigationSideMenu with selectedKey 1`] = ` + + + + + + +
+
+ +
+ +
+
+
+
+
+
+
+`;