From 715746fbd2bcb18193138d56df50b0d44da2681b Mon Sep 17 00:00:00 2001 From: xuegao Date: Wed, 3 Jun 2020 16:18:03 +0200 Subject: Remove logout Remove the logout option from UI. Issue-ID: CLAMP-860 Change-Id: I711b8a7eaf523195f0534044efd3dd74c3f1e0be Signed-off-by: xuegao --- ui-react/src/LoopUI.test.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'ui-react/src/LoopUI.test.js') 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() - 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(() => { -- cgit 1.2.3-korg