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:
parent
4f94c77634
commit
2ef0861d37
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) {
|
||||
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('/')
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue