Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support command line terminal for self-provisioner
- Loading branch information
1 parent
c43c0e9
commit c1efd5e
Showing
7 changed files
with
235 additions
and
62 deletions.
There are no files selected for viewing
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
12 changes: 4 additions & 8 deletions
12
frontend/packages/console-app/src/components/cloud-shell/__tests__/CloudShellTab.spec.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 |
---|---|---|
@@ -1,15 +1,11 @@ | ||
import * as React from 'react'; | ||
import { mount } from 'enzyme'; | ||
import { Provider } from 'react-redux'; | ||
import store from '@console/internal/redux'; | ||
import { shallow } from 'enzyme'; | ||
import CloudShellTab from '../CloudShellTab'; | ||
import CloudShellTerminal from '../CloudShellTerminal'; | ||
|
||
describe('CloudShell Tab Test', () => { | ||
it('should render cloudshellterminal', () => { | ||
const cloudShellTabWrapper = mount(<CloudShellTab />, { | ||
wrappingComponent: ({ children }) => <Provider store={store}>{children}</Provider>, | ||
}); | ||
describe('CloudShellTab', () => { | ||
it('should render CloudShellTerminal', () => { | ||
const cloudShellTabWrapper = shallow(<CloudShellTab />); | ||
expect(cloudShellTabWrapper.find(CloudShellTerminal).exists()).toBe(true); | ||
}); | ||
}); |
12 changes: 6 additions & 6 deletions
12
...end/packages/console-app/src/components/cloud-shell/__tests__/CloudShellTerminal.spec.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
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
Oops, something went wrong.