Updated readme and screenshots. Added and updated tests.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
jest.dontMock('../../assets/js/components/Alert.react.js');
|
||||
|
||||
describe('Wakatime', function() {
|
||||
describe('Alert', function() {
|
||||
var React, Alert, TestUtils, Component;
|
||||
|
||||
beforeEach(function() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
jest.dontMock('../../assets/js/components/Options.react.js');
|
||||
|
||||
describe('Wakatime', function() {
|
||||
describe('Options', function() {
|
||||
var React, Options, TestUtils, Component;
|
||||
|
||||
beforeEach(function() {
|
||||
|
||||
17
tests/components/SitesList.react.jest.js
Normal file
17
tests/components/SitesList.react.jest.js
Normal file
@@ -0,0 +1,17 @@
|
||||
jest.dontMock('../../assets/js/components/SitesList.react.js');
|
||||
|
||||
describe('SitesList', function() {
|
||||
var React, SitesList, TestUtils, Component;
|
||||
|
||||
beforeEach(function() {
|
||||
// Setup our tools
|
||||
React = require('react/addons');
|
||||
SitesList = require('../../assets/js/components/SitesList.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