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