mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
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…
x
Reference in New Issue
Block a user