mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
parent
67522ea25a
commit
1b3e1df641
1 changed files with 4 additions and 5 deletions
|
@ -553,14 +553,13 @@ describe('Frontend Routing', function () {
|
||||||
should.exist(res.headers.date);
|
should.exist(res.headers.date);
|
||||||
|
|
||||||
var content = res.text,
|
var content = res.text,
|
||||||
today = new Date(),
|
todayMoment = moment(),
|
||||||
dd = ('0' + today.getDate()).slice(-2),
|
dd = todayMoment.format('DD'),
|
||||||
mm = ('0' + (today.getMonth() + 1)).slice(-2),
|
mm = todayMoment.format('MM'),
|
||||||
yyyy = today.getFullYear(),
|
yyyy = todayMoment.format('YYYY'),
|
||||||
postLink = '/' + yyyy + '/' + mm + '/' + dd + '/welcome-to-ghost/';
|
postLink = '/' + yyyy + '/' + mm + '/' + dd + '/welcome-to-ghost/';
|
||||||
|
|
||||||
content.indexOf(postLink).should.be.above(0);
|
content.indexOf(postLink).should.be.above(0);
|
||||||
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue