-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: #1997 render handle legacy routes (route with login type prefix)
- Loading branch information
undefined
committed
Jul 13, 2020
1 parent
ac87e80
commit 07ad818
Showing
5 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...ges/handle-legacy-routes/__tests__/__snapshots__/handle-legacy-routes-modal.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AppContent AppContent - should match snapshoot 1`] = ` | ||
<HandleLegacyRoutesModal> | ||
<Component | ||
footerItems={ | ||
<React.Fragment> | ||
<Unknown | ||
onClick={[Function]} | ||
type="button" | ||
variant="primary" | ||
> | ||
Go there now | ||
</Unknown> | ||
<Unknown | ||
onClick={[Function]} | ||
type="button" | ||
variant="primary" | ||
> | ||
Back to Marketplace | ||
</Unknown> | ||
</React.Fragment> | ||
} | ||
tapOutsideToDissmiss={false} | ||
title="Looking for the developer portal?" | ||
visible={true} | ||
/> | ||
</HandleLegacyRoutesModal> | ||
`; |
9 changes: 9 additions & 0 deletions
9
...e/src/components/pages/handle-legacy-routes/__tests__/handle-legacy-routes-modal.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react' | ||
import { mount } from 'enzyme' | ||
import HandleLegacyRoutesModal from '../handle-legacy-routes-modal' | ||
|
||
describe('AppContent', () => { | ||
test('AppContent - should match snapshoot', () => { | ||
expect(mount(<HandleLegacyRoutesModal />)).toMatchSnapshot() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters