mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
parent
e42739fe97
commit
9575b25711
2 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ function isPost(jsonData) {
|
||||||
|
|
||||||
function isTag(jsonData) {
|
function isTag(jsonData) {
|
||||||
return jsonData.hasOwnProperty('name') && jsonData.hasOwnProperty('slug') &&
|
return jsonData.hasOwnProperty('name') && jsonData.hasOwnProperty('slug') &&
|
||||||
jsonData.hasOwnProperty('description') && jsonData.hasOwnProperty('parent_id');
|
jsonData.hasOwnProperty('description') && jsonData.hasOwnProperty('parent');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.tables = db;
|
module.exports.tables = db;
|
||||||
|
|
|
@ -576,7 +576,7 @@ describe('Core Helpers', function () {
|
||||||
|
|
||||||
it('should return the slug with a prefixed /tag/ if the context is a tag', function (done) {
|
it('should return the slug with a prefixed /tag/ if the context is a tag', function (done) {
|
||||||
helpers.url.call({
|
helpers.url.call({
|
||||||
name: 'the tag', slug: 'the-tag', description: null, parent_id: null
|
name: 'the tag', slug: 'the-tag', description: null, parent: null
|
||||||
}).then(function (rendered) {
|
}).then(function (rendered) {
|
||||||
should.exist(rendered);
|
should.exist(rendered);
|
||||||
rendered.should.equal('/tag/the-tag/');
|
rendered.should.equal('/tag/the-tag/');
|
||||||
|
|
Loading…
Add table
Reference in a new issue