1 jest
.dontMock('../framework/widgets/skyquake_container/skyquakeNav');
3 import React
from 'react';
4 import ReactDOM
from 'react-dom';
5 import TestUtils
from 'react-addons-test-utils';
6 import SkyquakeNav
from '../framework/widgets/skyquake_container/skyquakeNav';
7 // const SkyquakeNav = require('../framework/widgets/skyquake_container/skyquakeNav');
9 describe('SkyquakeNav', () => {
11 let exampleRoutes
= [{
12 "label": "Hello World Component 1",
13 "route": "/helloworld/#hello",
14 "component": "./helloWorldOne.jsx",
20 beforeEach(function() {
21 node
= document
.createElement('div')
23 describe('returnLinkItem', () => {
25 beforeEach(function() {
26 element
= SkyquakeNav
.returnLinkItem(exampleRoutes
[0]);
28 it('Returns an <a> tag when external', () => {
29 ReactDOM
.render(element
, node
, function() {
30 expect(node
.tagName
== "A";