Skip to content
Snippets Groups Projects
Commit 1952d856 authored by Reinder Kraaij's avatar Reinder Kraaij :eye:
Browse files

Fix Unittest for Time

parent d656df5e
No related branches found
No related tags found
1 merge request!1220Temporary disable t_l2station_tmss_test and t_l2station_tmss_integration_test
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment