0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fixed posts model regression test

no issue

- The failing test was introduced with 80f7e0b19e
- The counter was not correctly incremented
This commit is contained in:
Nazar Gargol 2019-09-30 21:25:23 +02:00
parent b64b0f3532
commit 955bc434d1

View file

@ -817,7 +817,7 @@ describe('Post Model', function () {
createdPost.get('html').should.equal(newPostDB.html);
createdPost.has('plaintext').should.equal(true);
createdPost.get('plaintext').should.match(/^testing/);
createdPost.get('slug').should.equal(newPostDB.slug + '-2');
createdPost.get('slug').should.equal(newPostDB.slug + '-3');
(!!createdPost.get('featured')).should.equal(false);
(!!createdPost.get('page')).should.equal(false);