Files
browser-wakatime/tests/helpers/getTodaysDateInFormat.spec.js
2015-06-14 01:10:10 +02:00

15 lines
444 B
JavaScript

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.equal('2015-06-14');
});
});