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
1952d856
Commit
1952d856
authored
1 year ago
by
Reinder Kraaij
Browse files
Options
Downloads
Patches
Plain Diff
Fix Unittest for Time
parent
d656df5e
No related branches found
No related tags found
1 merge request
!1220
Temporary disable t_l2station_tmss_test and t_l2station_tmss_integration_test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/frontend/tmss_webapp/src/layout/components/DateTimeInfo.test.js
+12
-2
12 additions, 2 deletions
...nd/tmss_webapp/src/layout/components/DateTimeInfo.test.js
with
12 additions
and
2 deletions
SAS/TMSS/frontend/tmss_webapp/src/layout/components/DateTimeInfo.test.js
+
12
−
2
View file @
1952d856
...
...
@@ -20,7 +20,17 @@ describe('DateTimeInfo Component', () => {
it
(
'
renders datetime info when currentUTC and currentLST are available and valid
'
,
async
()
=>
{
const
utcTime
=
'
2023-08-11 06:20:45
'
;
const
lstTime
=
'
2023-08-11 12:20:45
'
;
const
lstTime
=
{
data
:
{
UTC
:
"
2023-11-21T00:00:00Z
"
,
LST
:
{
CS002
:
"
04:26:26
"
}
}
}
UtilService
.
getUTC
.
mockResolvedValue
(
utcTime
);
UtilService
.
getLST
.
mockResolvedValue
(
lstTime
);
...
...
@@ -33,7 +43,7 @@ describe('DateTimeInfo Component', () => {
expect
(
content
.
getByTestId
(
'
Date-element
'
)).
toBeInTheDocument
();
expect
(
content
.
getByTestId
(
'
UTC-element
'
)).
toBeInTheDocument
();
expect
(
content
.
getByTestId
(
'
LST-element
'
)).
toBeInTheDocument
();
expect
(
content
.
getByTestId
(
'
LOFAR Core
LST-element
'
)).
toBeInTheDocument
();
expect
(
UtilService
.
getUTC
).
toHaveBeenCalled
();
expect
(
UtilService
.
getLST
).
toHaveBeenCalled
();
...
...
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