Commit caeb6e47 authored by Paul Kaplan's avatar Paul Kaplan

Fixup incorrectly added code to test files

parent 1027b82f
...@@ -22,36 +22,6 @@ beforeEach(() => { ...@@ -22,36 +22,6 @@ beforeEach(() => {
api.mockClear(); 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', () => { describe('loadManagers', () => {
test('it populates the managers list', () => { test('it populates the managers list', () => {
store = configureStore(reducers, { store = configureStore(reducers, {
......
import {selectStudioManagerCount} from '../../../src/redux/studio';
import { import {
Errors, Errors,
loadProjects, loadProjects,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment