From 3133c302fcd34037f07c8164e335024b677c5f9a Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 30 Apr 2020 09:00:39 +0100 Subject: [PATCH] Fixed error in redirect regression test - this redirect is the only one in our tests which is permanent - also I verified that this new test works the same before and after the recent changes :) --- test/regression/site/frontend_spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/regression/site/frontend_spec.js b/test/regression/site/frontend_spec.js index 739e4bc6a6..b367522e46 100644 --- a/test/regression/site/frontend_spec.js +++ b/test/regression/site/frontend_spec.js @@ -802,10 +802,10 @@ describe('Frontend Routing', function () { }); describe('internal url redirect', function () { - it('shold include the subdirectory', function (done) { + it('should include the subdirectory', function (done) { request.get('/blog/my-old-blog-post/') - .expect(302) - .expect('Cache-Control', testUtils.cacheRules.public) + .expect(301) + .expect('Cache-Control', testUtils.cacheRules.year) .end(function (err, res) { res.headers.location.should.eql('/blog/revamped-url/'); doEnd(done)(err, res); @@ -814,7 +814,7 @@ describe('Frontend Routing', function () { }); describe('external url redirect', function () { - it('shold not include the subdirectory', function (done) { + it('should not include the subdirectory', function (done) { request.get('/blog/external-url/docs') .expect(302) .expect('Cache-Control', testUtils.cacheRules.public)