diff --git a/test/unit/redux/studio-member-actions.test.js b/test/unit/redux/studio-member-actions.test.js index 7a9bece76..86062b93f 100644 --- a/test/unit/redux/studio-member-actions.test.js +++ b/test/unit/redux/studio-member-actions.test.js @@ -22,36 +22,6 @@ beforeEach(() => { api.mockClear(); }); - -const storage = { - max: undefined, - items: [] -}; - -Object.defineProperty(storage, 'max', {writable: false, value: 5000}); - -let currentStorage = 'undefined'; - -const storageUsed = () => { - if (currentStorage) { - return currentStorage; - } - currentStorage = 0; - for (const i = 0; i < storage.length(); i++) { - currentStorage += storage.items[i].weigth; - } - return currentStorage; -}; - -const add = (item) => { - if (storage.max - item.weight >= storageUsed()) { - storage.items.push(item); - currentStorage += iten.weight; - } -}; - -add({weight: 100}); - describe('loadManagers', () => { test('it populates the managers list', () => { store = configureStore(reducers, { diff --git a/test/unit/redux/studio-project-actions.test.js b/test/unit/redux/studio-project-actions.test.js index 30cb3eca9..9e27e1c42 100644 --- a/test/unit/redux/studio-project-actions.test.js +++ b/test/unit/redux/studio-project-actions.test.js @@ -1,4 +1,3 @@ -import {selectStudioManagerCount} from '../../../src/redux/studio'; import { Errors, loadProjects,