Started working on getting the time logged today.
This commit is contained in:
@@ -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