Ivan - OS-48 - Add UnitTest and necessary mocks for login/logout logic [skip ci]
This commit is contained in:
parent
e401edef10
commit
64d2a9d70a
|
@ -9,7 +9,6 @@ describe('App component', function () {
|
|||
let app;
|
||||
|
||||
beforeEach(function () {
|
||||
console.log(App);
|
||||
app = TestUtils.renderIntoDocument(
|
||||
<App><span>MOCK_CHILD</span></App>
|
||||
);
|
||||
|
|
|
@ -20,9 +20,5 @@ module.exports = {
|
|||
onFail && onFail(result);
|
||||
}
|
||||
});
|
||||
},
|
||||
setConfig: function (userId, token) {
|
||||
SessionStorage.setItem('userId', userId);
|
||||
SessionStorage.setItem('token', token);
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue