AugurProject/augur-ui

View on GitHub
src/assertions/outcome-trade-nav-items.js

Summary

Maintainability
A
2 hrs
Test Coverage
import assertComponentNavItem from "src/assertions/common/component-nav";

export default function(marketDataNavItems) {
  expect(marketDataNavItems).toBeDefined();
  expect(typeof marketDataNavItems).toBe("object");

  Object.keys(marketDataNavItems).forEach(navItem => {
    assertComponentNavItem(marketDataNavItems[navItem], navItem);
  });
}