Skip to content

Node.js based forum software built for the modern web

test: test fixes for default teaser change

Barış Soner Uşaklı8eedb38a99d3
diff --git a/public/openapi/components/schemas/TopicObject.yaml b/public/openapi/components/schemas/TopicObject.yaml
index b26623072e..30ba9d3a77 100644
--- a/public/openapi/components/schemas/TopicObject.yaml
+++ b/public/openapi/components/schemas/TopicObject.yaml
@@ -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
diff --git a/public/openapi/read/unread.yaml b/public/openapi/read/unread.yaml
index e916231d65..ea69f666dd 100644
--- a/public/openapi/read/unread.yaml
+++ b/public/openapi/read/unread.yaml
@@ -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
diff --git a/test/topics.js b/test/topics.js
index dcea6ccd09..bc92bbff09 100644
--- a/test/topics.js
+++ b/test/topics.js
@@ -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();
});
});