* use @xarc/xrun to streamline tasks in an imperative manner * add lint-staged/husky for git hook tasks * run prettier across all files * fixing tests * add ci test workflow * add a ci workflow * remove precommit in favor of husky * add .prettierrc.js * reformat with prettier
18 lines
485 B
JavaScript
18 lines
485 B
JavaScript
jest.dontMock('../../assets/js/components/Navbar.jsx');
|
|
|
|
describe('Navbar', function () {
|
|
var React, Navbar, TestUtils, Component;
|
|
|
|
beforeEach(function () {
|
|
// Setup our tools
|
|
React = require('react/addons');
|
|
Navbar = require('../../assets/js/components/Navbar.jsx');
|
|
TestUtils = React.addons.TestUtils;
|
|
// Create the React component here using TestUtils and store into Component
|
|
});
|
|
|
|
it('should work', function () {
|
|
expect(2 + 2).toEqual(4);
|
|
});
|
|
});
|