mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
parent
67522ea25a
commit
1b3e1df641
@ -553,14 +553,13 @@ describe('Frontend Routing', function () {
|
||||
should.exist(res.headers.date);
|
||||
|
||||
var content = res.text,
|
||||
today = new Date(),
|
||||
dd = ('0' + today.getDate()).slice(-2),
|
||||
mm = ('0' + (today.getMonth() + 1)).slice(-2),
|
||||
yyyy = today.getFullYear(),
|
||||
todayMoment = moment(),
|
||||
dd = todayMoment.format('DD'),
|
||||
mm = todayMoment.format('MM'),
|
||||
yyyy = todayMoment.format('YYYY'),
|
||||
postLink = '/' + yyyy + '/' + mm + '/' + dd + '/welcome-to-ghost/';
|
||||
|
||||
content.indexOf(postLink).should.be.above(0);
|
||||
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user