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