Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
caeb6e47
Commit
caeb6e47
authored
Jun 28, 2021
by
Paul Kaplan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup incorrectly added code to test files
parent
1027b82f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
31 deletions
+0
-31
test/unit/redux/studio-member-actions.test.js
test/unit/redux/studio-member-actions.test.js
+0
-30
test/unit/redux/studio-project-actions.test.js
test/unit/redux/studio-project-actions.test.js
+0
-1
No files found.
test/unit/redux/studio-member-actions.test.js
View file @
caeb6e47
...
...
@@ -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
,
{
...
...
test/unit/redux/studio-project-actions.test.js
View file @
caeb6e47
import
{
selectStudioManagerCount
}
from
'
../../../src/redux/studio
'
;
import
{
Errors
,
loadProjects
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment