Skip to content

Commit

Permalink
test year for date object
Browse files Browse the repository at this point in the history
  • Loading branch information
wonknu committed Dec 7, 2016
1 parent d6f8304 commit 2cd811d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/core/utils/file.js
Expand Up @@ -53,7 +53,7 @@ describe('coreUtils.file', function() {
var stub = sinon.stub(cmsData.fileAttr, 'get')
stub.returns({d: '2016-12-07T13:04:18.810Z'});
var result = coreUtils.file.getDate(path.join(config.root, config.data.url, 'article-abe-d20161207T130418810Z.json'))
chai.expect(result.toString()).to.equal('Wed Dec 07 2016 14:04:18 GMT+0100 (CET)')
chai.expect(result.getYear()).to.equal(116)
cmsData.fileAttr.get.restore()
});

Expand Down

0 comments on commit 2cd811d

Please sign in to comment.