mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Altered integration test to cover dashes in slug
This commit is contained in:
parent
199a92d9cb
commit
d092b4ecd2
@ -243,13 +243,13 @@ describe('Post Model', function () {
|
||||
|
||||
it('can generate slugs without duplicate hyphens', function (done) {
|
||||
var newPost = {
|
||||
title: 'apprehensive titles have too many spaces ',
|
||||
title: 'apprehensive titles have too many spaces—and m-dashes — – and also n-dashes ',
|
||||
markdown: 'Test Content 1'
|
||||
};
|
||||
|
||||
PostModel.add(newPost).then(function (createdPost) {
|
||||
|
||||
createdPost.get('slug').should.equal('apprehensive-titles-have-too-many-spaces');
|
||||
createdPost.get('slug').should.equal('apprehensive-titles-have-too-many-spaces-and-m-dashes-and-also-n-dashes');
|
||||
|
||||
done();
|
||||
}).then(null, done);
|
||||
|
Loading…
Reference in New Issue
Block a user