test: test fixes for default teaser change

This commit is contained in:
Barış Soner Uşaklı
2025-07-22 10:51:54 -04:00
parent 8ba230a205
commit 8eedb38a99
3 changed files with 16 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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();
});
});