Added tests for helpers and components. All react components are now ES5.
This commit is contained in:
17
tests/components/Alert.react.jest.js
Normal file
17
tests/components/Alert.react.jest.js
Normal file
@@ -0,0 +1,17 @@
|
||||
jest.dontMock('../../assets/js/components/Alert.react.js');
|
||||
|
||||
describe('Wakatime', function() {
|
||||
var React, Alert, TestUtils, Component;
|
||||
|
||||
beforeEach(function() {
|
||||
// Setup our tools
|
||||
React = require('react/addons');
|
||||
Alert = require('../../assets/js/components/Alert.react.js');
|
||||
TestUtils = React.addons.TestUtils;
|
||||
// Create the React component here using TestUtils and store into Component
|
||||
});
|
||||
|
||||
it('should work', function() {
|
||||
expect(2 + 2).toEqual(4);
|
||||
});
|
||||
});
|
||||
17
tests/components/Options.react.jest.js
Normal file
17
tests/components/Options.react.jest.js
Normal file
@@ -0,0 +1,17 @@
|
||||
jest.dontMock('../../assets/js/components/Options.react.js');
|
||||
|
||||
describe('Wakatime', function() {
|
||||
var React, Options, TestUtils, Component;
|
||||
|
||||
beforeEach(function() {
|
||||
// Setup our tools
|
||||
React = require('react/addons');
|
||||
Options = require('../../assets/js/components/Options.react.js');
|
||||
TestUtils = React.addons.TestUtils;
|
||||
// Create the React component here using TestUtils and store into Component
|
||||
});
|
||||
|
||||
it('should work', function() {
|
||||
expect(2 + 2).toEqual(4);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user