mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 12:16:09 +03:00
Merge pull request #3335 from ErisDS/issue-3333
switched parent_id for parent
This commit is contained in:
commit
d8818a12d9
@ -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…
Reference in New Issue
Block a user