INTO-CPS-Association/DTaaS

View on GitHub
client/test/unit/routes/DigitalTwins.test.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import * as React from 'react';
import DigitalTwins from 'route/digitaltwins/DigitalTwins';
import tabs from 'route/digitaltwins/DigitalTwinTabData';
import {
  InitRouteTests,
  itDisplaysContentOfTabs,
  itHasCorrectTabNameinDTIframe,
} from 'test/unit/unit.testUtil';

describe('Digital Twins', () => {
  const tabLabels: string[] = [];
  tabs.forEach((tab) => tabLabels.push(tab.label));
  InitRouteTests(<DigitalTwins />);

  itDisplaysContentOfTabs(tabs);

  itHasCorrectTabNameinDTIframe(tabLabels);
});