From 2ef0861d3708e0a35245fba44f2eb9c5a842f99a Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Sat, 29 Nov 2014 17:23:10 -0800 Subject: [PATCH] Use non-deprecated moment.substract() Closes #4545 - Go with subtract(value, string) instead of subtract(string, value) --- core/test/unit/frontend_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/test/unit/frontend_spec.js b/core/test/unit/frontend_spec.js index 7037df18f6..1bd316a344 100644 --- a/core/test/unit/frontend_spec.js +++ b/core/test/unit/frontend_spec.js @@ -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('/') },