Started working on getting the time logged today.

This commit is contained in:
Mario Basic
2015-06-14 00:31:22 +02:00
parent a43037fe78
commit 229f514819
12 changed files with 83 additions and 48 deletions

View File

@@ -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');
});
});

View File

@@ -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');
});
});

View 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');
});
});