mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Merge pull request #4548 from felixrieseberg/iss4545
Use non-deprecated moment.substract()
This commit is contained in:
commit
f3de619ea7
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
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 = {
|
req = {
|
||||||
path: '/' + [date, mockPosts[1].posts[0].slug].join('/')
|
path: '/' + [date, mockPosts[1].posts[0].slug].join('/')
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue