Fixup incorrectly added code to test files

This commit is contained in:
Paul Kaplan 2021-06-28 09:54:53 -04:00
parent 1027b82f66
commit caeb6e476c
2 changed files with 0 additions and 31 deletions

View file

@ -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, {

View file

@ -1,4 +1,3 @@
import {selectStudioManagerCount} from '../../../src/redux/studio';
import { import {
Errors, Errors,
loadProjects, loadProjects,