diff options
author | xuegao <xg353y@intl.att.com> | 2020-06-03 16:18:03 +0200 |
---|---|---|
committer | Xue Gao <xg353y@intl.att.com> | 2020-06-04 10:48:20 +0000 |
commit | 715746fbd2bcb18193138d56df50b0d44da2681b (patch) | |
tree | ab533c51a966681f61fc29974e6cdd034d003bc6 /ui-react/src/LoopUI.test.js | |
parent | 76aba9965ffb62bc59f9c95ba61811448010f2cf (diff) |
Remove logout
Remove the logout option from UI.
Issue-ID: CLAMP-860
Change-Id: I711b8a7eaf523195f0534044efd3dd74c3f1e0be
Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/LoopUI.test.js')
-rw-r--r-- | ui-react/src/LoopUI.test.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ui-react/src/LoopUI.test.js b/ui-react/src/LoopUI.test.js index 6885e7932..bfd6376e3 100644 --- a/ui-react/src/LoopUI.test.js +++ b/ui-react/src/LoopUI.test.js @@ -83,15 +83,6 @@ describe('Verify LoopUI', () => { expect(historyMock.push.mock.calls[0]).toEqual([ '/']); }) - test('Test logout method', async () => { - const flushPromises = () => new Promise(setImmediate); - const component = shallow(<LoopUI />) - const instance = component.instance(); - instance.logout(); - await flushPromises(); - expect(component.state('userName')).toEqual("testUser"); - }) - test('Test loadLoop method refresh suc', async () => { const historyMock = { push: jest.fn() }; LoopService.getLoop = jest.fn().mockImplementation(() => { |