mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
test: test fixes for default teaser change
This commit is contained in:
@@ -106,6 +106,9 @@ TopicObject:
|
|||||||
description: A topic identifier
|
description: A topic identifier
|
||||||
content:
|
content:
|
||||||
type: string
|
type: string
|
||||||
|
sourceContent:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
timestampISO:
|
timestampISO:
|
||||||
type: string
|
type: string
|
||||||
description: An ISO 8601 formatted date string (complementing `timestamp`)
|
description: An ISO 8601 formatted date string (complementing `timestamp`)
|
||||||
@@ -118,6 +121,10 @@ TopicObject:
|
|||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
description: A friendly name for a given user account
|
description: A friendly name for a given user account
|
||||||
|
displayname:
|
||||||
|
type: string
|
||||||
|
isLocal:
|
||||||
|
type: boolean
|
||||||
userslug:
|
userslug:
|
||||||
type: string
|
type: string
|
||||||
description: An URL-safe variant of the username (i.e. lower-cased, spaces
|
description: An URL-safe variant of the username (i.e. lower-cased, spaces
|
||||||
|
|||||||
@@ -138,6 +138,9 @@ get:
|
|||||||
description: A topic identifier
|
description: A topic identifier
|
||||||
content:
|
content:
|
||||||
type: string
|
type: string
|
||||||
|
sourceContent:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
timestampISO:
|
timestampISO:
|
||||||
type: string
|
type: string
|
||||||
description: An ISO 8601 formatted date string (complementing `timestamp`)
|
description: An ISO 8601 formatted date string (complementing `timestamp`)
|
||||||
@@ -150,6 +153,10 @@ get:
|
|||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
description: A friendly name for a given user account
|
description: A friendly name for a given user account
|
||||||
|
displayname:
|
||||||
|
type: string
|
||||||
|
isLocal:
|
||||||
|
type: boolean
|
||||||
userslug:
|
userslug:
|
||||||
type: string
|
type: string
|
||||||
description: An URL-safe variant of the username (i.e. lower-cased, spaces
|
description: An URL-safe variant of the username (i.e. lower-cased, spaces
|
||||||
|
|||||||
@@ -2000,7 +2000,8 @@ describe('Topic\'s', () => {
|
|||||||
it('should get teasers with 2 params', (done) => {
|
it('should get teasers with 2 params', (done) => {
|
||||||
topics.getTeasers([topic1.topicData, topic2.topicData], 1, (err, teasers) => {
|
topics.getTeasers([topic1.topicData, topic2.topicData], 1, (err, teasers) => {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
assert.deepEqual([undefined, undefined], teasers);
|
assert(teasers[0]);
|
||||||
|
assert(teasers[1]);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user