Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Евгений Положенцев
planner-team-one
Commits
7074af30
Commit
7074af30
authored
Feb 21, 2023
by
Евгений Положенцев
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#166
remove unused code in fixtures
parent
d0b9e49f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
fixtures.ts
planner-api/src/fixtures.ts
+2
-10
No files found.
planner-api/src/fixtures.ts
View file @
7074af30
...
...
@@ -14,7 +14,6 @@ function randomIntFromInterval(min:number, max:number) {
return
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
)
+
min
);
}
let
countMembers
=
0
let
countRolesProject
=
0
const
cycleThroughObject
=
(
countKey
:
number
,
objectObserve
:
any
):
MemberRole
=>
{
...
...
@@ -27,14 +26,8 @@ const cycleThroughObject=(countKey:number,objectObserve:any):MemberRole=>{
}
return
valueOfKey
}
const
cycleArrayOfMembers
=
(
countIndex
:
number
,
members
:
Member
[]):
Member
=>
{
let
member
=
members
[
countIndex
]
countIndex
++
if
(
countIndex
===
members
.
length
-
1
){
countIndex
=
0
}
return
member
}
const
loadFixtures
=
async
()
=>
{
...
...
@@ -103,7 +96,6 @@ const loadFixtures = async () => {
let
currentTime
=
new
Date
()
let
startdateOfMonth
=
randomIntFromInterval
(
20
,
24
)
let
enddateOfMonth
=
randomIntFromInterval
(
25
,
29
)
let
deadLineDateOfMonth
=
randomIntFromInterval
(
1
,
10
)
let
startDateTime
=
new
Date
(
currentTime
.
getFullYear
(),
currentTime
.
getMonth
()
+
1
,
startdateOfMonth
,
randomIntFromInterval
(
11
,
18
),
0
,
0
);
let
dueDateTime
=
new
Date
(
currentTime
.
getFullYear
(),
currentTime
.
getMonth
()
+
1
,
startdateOfMonth
,
randomIntFromInterval
(
19
,
20
),
0
,
0
);
let
deadLine
=
new
Date
(
currentTime
.
getFullYear
(),
currentTime
.
getMonth
()
+
2
,
enddateOfMonth
,
randomIntFromInterval
(
20
,
22
),
0
,
0
);
...
...
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