0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00

updating tests to match casper

This commit is contained in:
Hannah Wolfe 2014-07-22 23:26:13 +01:00
parent 05c49ef989
commit a620e9017e

View file

@ -170,7 +170,7 @@ describe('Frontend Routing', function () {
request.get('/') request.get('/')
.expect(200) .expect(200)
.expect(/\<link rel="canonical" href="http:\/\/127.0.0.1:2370\/" \/\>/) .expect(/\<link rel="canonical" href="http:\/\/127.0.0.1:2370\/" \/\>/)
.expect(/copyright \<a href="http:\/\/127.0.0.1:2370\/">Ghost\<\/a\>/) .expect(/\<a href="http:\/\/127.0.0.1:2370">Ghost\<\/a\>/)
.end(doEnd(done)); .end(doEnd(done));
}); });
@ -179,7 +179,7 @@ describe('Frontend Routing', function () {
.set('X-Forwarded-Proto', 'https') .set('X-Forwarded-Proto', 'https')
.expect(200) .expect(200)
.expect(/\<link rel="canonical" href="https:\/\/localhost\/" \/\>/) .expect(/\<link rel="canonical" href="https:\/\/localhost\/" \/\>/)
.expect(/copyright \<a href="https:\/\/localhost\/">Ghost\<\/a\>/) .expect(/\<a href="https:\/\/localhost">Ghost\<\/a\>/)
.end(doEnd(done)); .end(doEnd(done));
}); });
}); });