Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
ecf1742d
Commit
ecf1742d
authored
1 year ago
by
Reinder Kraaij
Browse files
Options
Downloads
Patches
Plain Diff
utcSpy
parent
93e8219c
No related branches found
No related tags found
1 merge request
!1182
This Fixes allmost all Scheduling unit tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/excelview.schedulingset.test.js
+2
-2
2 additions, 2 deletions
...app/src/routes/Scheduling/excelview.schedulingset.test.js
with
2 additions
and
2 deletions
SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/excelview.schedulingset.test.js
+
2
−
2
View file @
ecf1742d
...
@@ -15,7 +15,7 @@ import { clickItem, removeReact18ConsoleErrors, renderPage, setMultiSelectValue
...
@@ -15,7 +15,7 @@ import { clickItem, removeReact18ConsoleErrors, renderPage, setMultiSelectValue
import
{
setSchedulingUnitStrategy
}
from
"
./schedulingunit.test.helper
"
;
import
{
setSchedulingUnitStrategy
}
from
"
./schedulingunit.test.helper
"
;
let
projectListSpy
,
observStrategiesSpy
,
taskTemplatesSpy
,
userPermissionSpy
,
rolesSpy
,
suConstraintTemplateSpy
,
let
projectListSpy
,
observStrategiesSpy
,
taskTemplatesSpy
,
userPermissionSpy
,
rolesSpy
,
suConstraintTemplateSpy
,
templatePurposesSpy
,
templateStatesSpy
;
templatePurposesSpy
,
templateStatesSpy
,
utcSpy
;
//Jest issue: https://github.com/jestjs/jest/issues/9709: Cannot be called in beforeXX test method
//Jest issue: https://github.com/jestjs/jest/issues/9709: Cannot be called in beforeXX test method
const
OBSERVATION_STRATEGY_TEMPLATES
=
SUServiceMock
.
getObservStrategies
()
const
OBSERVATION_STRATEGY_TEMPLATES
=
SUServiceMock
.
getObservStrategies
()
...
@@ -56,7 +56,7 @@ function createStandardPageMocks() {
...
@@ -56,7 +56,7 @@ function createStandardPageMocks() {
return
Promise
.
resolve
(
SUServiceMock
.
getMyRoles
)
return
Promise
.
resolve
(
SUServiceMock
.
getMyRoles
)
});
});
const
utcTime
=
'
2023-08-11 06:20:45
'
;
const
utcTime
=
'
2023-08-11 06:20:45
'
;
utc
s
py
=
jest
.
spyOn
(
UtilService
,
'
getUTC
'
).
mockResolvedValue
(
utcTime
);
utc
S
py
=
jest
.
spyOn
(
UtilService
,
'
getUTC
'
).
mockResolvedValue
(
utcTime
);
}
}
function
getColumnTypes
(
columnDefs
)
{
function
getColumnTypes
(
columnDefs
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment