0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Use non-deprecated moment.substract()

Closes #4545
- Go with subtract(value, string) instead of subtract(string, value)
This commit is contained in:
Felix Rieseberg 2014-11-29 17:23:10 -08:00
parent 4f94c77634
commit 2ef0861d37

View file

@ -944,7 +944,7 @@ describe('Frontend Controller', function () {
});
it('will NOT render post via /YYYY/MM/DD/:slug with non-matching date in url', function (done) {
var date = moment(mockPosts[1].published_at).subtract('days', 1).format('YYYY/MM/DD'),
var date = moment(mockPosts[1].published_at).subtract(1, 'days').format('YYYY/MM/DD'),
req = {
path: '/' + [date, mockPosts[1].posts[0].slug].join('/')
},