Started working on getting the time logged today.
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
jest.dontMock('../../assets/js/components/MainList.react.js');
|
||||
|
||||
describe('MainList', function() {
|
||||
var React, MainList, TestUtils, Component;
|
||||
var React, MainList, TestUtils, Component;
|
||||
|
||||
beforeEach(function() {
|
||||
// Setup our tools
|
||||
React = require('react/addons');
|
||||
MainList = require('../../assets/js/components/MainList.react.js');
|
||||
TestUtils = React.addons.TestUtils;
|
||||
// Create the React component here using TestUtils and store into Component
|
||||
});
|
||||
beforeEach(function() {
|
||||
// Setup our tools
|
||||
React = require('react/addons');
|
||||
MainList = require('../../assets/js/components/MainList.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);
|
||||
});
|
||||
it('should work', function() {
|
||||
expect(2 + 2).toEqual(4);
|
||||
});
|
||||
});
|
||||
@@ -1,17 +1,17 @@
|
||||
jest.dontMock('../../assets/js/components/Navbar.react.js');
|
||||
|
||||
describe('Navbar', function() {
|
||||
var React, Navbar, TestUtils, Component;
|
||||
var React, Navbar, TestUtils, Component;
|
||||
|
||||
beforeEach(function() {
|
||||
// Setup our tools
|
||||
React = require('react/addons');
|
||||
Navbar = require('../../assets/js/components/Navbar.react.js');
|
||||
TestUtils = React.addons.TestUtils;
|
||||
// Create the React component here using TestUtils and store into Component
|
||||
});
|
||||
beforeEach(function() {
|
||||
// Setup our tools
|
||||
React = require('react/addons');
|
||||
Navbar = require('../../assets/js/components/Navbar.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);
|
||||
});
|
||||
it('should work', function() {
|
||||
expect(2 + 2).toEqual(4);
|
||||
});
|
||||
});
|
||||
@@ -1,17 +1,17 @@
|
||||
jest.dontMock('../../assets/js/components/Wakatime.react.js');
|
||||
|
||||
describe('Wakatime', function() {
|
||||
var React, Wakatime, TestUtils, Component;
|
||||
var React, Wakatime, TestUtils, Component;
|
||||
|
||||
beforeEach(function() {
|
||||
// Setup our tools
|
||||
React = require('react/addons');
|
||||
Wakatime = require('../../assets/js/components/Wakatime.react.js');
|
||||
TestUtils = React.addons.TestUtils;
|
||||
// Create the React component here using TestUtils and store into Component
|
||||
});
|
||||
beforeEach(function() {
|
||||
// Setup our tools
|
||||
React = require('react/addons');
|
||||
Wakatime = require('../../assets/js/components/Wakatime.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);
|
||||
});
|
||||
it('should work', function() {
|
||||
expect(2 + 2).toEqual(4);
|
||||
});
|
||||
});
|
||||
@@ -4,7 +4,7 @@ var expect = chai.expect;
|
||||
import changeExtensionIcon from '../../assets/js/helpers/changeExtensionIcon';
|
||||
|
||||
describe('changeExtensionIcon', function() {
|
||||
it('should be a function', function() {
|
||||
expect(changeExtensionIcon).to.be.a('function');
|
||||
});
|
||||
});
|
||||
it('should be a function', function() {
|
||||
expect(changeExtensionIcon).to.be.a('function');
|
||||
});
|
||||
});
|
||||
@@ -4,7 +4,7 @@ var expect = chai.expect;
|
||||
import currentTimestamp from '../../assets/js/helpers/currentTimestamp';
|
||||
|
||||
describe('currentTimestamp', function() {
|
||||
it('should be a function', function() {
|
||||
expect(currentTimestamp).to.be.a('function');
|
||||
});
|
||||
});
|
||||
it('should be a function', function() {
|
||||
expect(currentTimestamp).to.be.a('function');
|
||||
});
|
||||
});
|
||||
14
tests/helpers/getTodaysDateInFormat.spec.js
Normal file
14
tests/helpers/getTodaysDateInFormat.spec.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var chai = require('chai');
|
||||
var expect = chai.expect;
|
||||
|
||||
import getTodaysDateInFormat from '../../assets/js/helpers/getTodaysDateInFormat';
|
||||
|
||||
describe('getTodaysDateInFormat', function() {
|
||||
it('should be a function', function() {
|
||||
expect(getTodaysDateInFormat).to.be.a('function');
|
||||
});
|
||||
|
||||
it('should return todays date in format YYYY-MM-DD', function() {
|
||||
expect(getTodaysDateInFormat()).to.be('2015-06-14');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user