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.yamlindex 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 identifiercontent:type: string+ sourceContent:+ type: string+ nullable: truetimestampISO:type: stringdescription: An ISO 8601 formatted date string (complementing `timestamp`)@@ -118,6 +121,10 @@ TopicObject:username:type: stringdescription: A friendly name for a given user account+ displayname:+ type: string+ isLocal:+ type: booleanuserslug:type: stringdescription: An URL-safe variant of the username (i.e. lower-cased, spacesdiff --git a/public/openapi/read/unread.yaml b/public/openapi/read/unread.yamlindex e916231d65..ea69f666dd 100644--- a/public/openapi/read/unread.yaml+++ b/public/openapi/read/unread.yaml@@ -138,6 +138,9 @@ get:description: A topic identifiercontent:type: string+ sourceContent:+ type: string+ nullable: truetimestampISO:type: stringdescription: An ISO 8601 formatted date string (complementing `timestamp`)@@ -150,6 +153,10 @@ get:username:type: stringdescription: A friendly name for a given user account+ displayname:+ type: string+ isLocal:+ type: booleanuserslug:type: stringdescription: An URL-safe variant of the username (i.e. lower-cased, spacesdiff --git a/test/topics.js b/test/topics.jsindex 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();});});