mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Fixup incorrectly added code to test files
This commit is contained in:
parent
1027b82f66
commit
caeb6e476c
2 changed files with 0 additions and 31 deletions
|
@ -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, {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import {selectStudioManagerCount} from '../../../src/redux/studio';
|
||||
import {
|
||||
Errors,
|
||||
loadProjects,
|
||||
|
|
Loading…
Reference in a new issue