aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/single-server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/single-server.ts')
-rw-r--r--server/tests/api/single-server.ts15
1 files changed, 8 insertions, 7 deletions
diff --git a/server/tests/api/single-server.ts b/server/tests/api/single-server.ts
index fe192d391..d7e9ad41f 100644
--- a/server/tests/api/single-server.ts
+++ b/server/tests/api/single-server.ts
@@ -127,7 +127,7 @@ describe('Test a single server', function () {
127 expect(video.nsfw).to.be.ok 127 expect(video.nsfw).to.be.ok
128 expect(video.description).to.equal('my super description') 128 expect(video.description).to.equal('my super description')
129 expect(video.serverHost).to.equal('localhost:9001') 129 expect(video.serverHost).to.equal('localhost:9001')
130 expect(video.account).to.equal('root') 130 expect(video.accountName).to.equal('root')
131 expect(video.isLocal).to.be.true 131 expect(video.isLocal).to.be.true
132 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) 132 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ])
133 expect(dateIsValid(video.createdAt)).to.be.true 133 expect(dateIsValid(video.createdAt)).to.be.true
@@ -176,7 +176,7 @@ describe('Test a single server', function () {
176 expect(video.nsfw).to.be.ok 176 expect(video.nsfw).to.be.ok
177 expect(video.description).to.equal('my super description') 177 expect(video.description).to.equal('my super description')
178 expect(video.serverHost).to.equal('localhost:9001') 178 expect(video.serverHost).to.equal('localhost:9001')
179 expect(video.account).to.equal('root') 179 expect(video.accountName).to.equal('root')
180 expect(video.isLocal).to.be.true 180 expect(video.isLocal).to.be.true
181 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) 181 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ])
182 expect(dateIsValid(video.createdAt)).to.be.true 182 expect(dateIsValid(video.createdAt)).to.be.true
@@ -243,7 +243,7 @@ describe('Test a single server', function () {
243 expect(video.nsfw).to.be.ok 243 expect(video.nsfw).to.be.ok
244 expect(video.description).to.equal('my super description') 244 expect(video.description).to.equal('my super description')
245 expect(video.serverHost).to.equal('localhost:9001') 245 expect(video.serverHost).to.equal('localhost:9001')
246 expect(video.account).to.equal('root') 246 expect(video.accountName).to.equal('root')
247 expect(video.isLocal).to.be.true 247 expect(video.isLocal).to.be.true
248 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) 248 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ])
249 expect(dateIsValid(video.createdAt)).to.be.true 249 expect(dateIsValid(video.createdAt)).to.be.true
@@ -298,7 +298,7 @@ describe('Test a single server', function () {
298 // expect(video.nsfw).to.be.ok 298 // expect(video.nsfw).to.be.ok
299 // expect(video.description).to.equal('my super description') 299 // expect(video.description).to.equal('my super description')
300 // expect(video.serverHost).to.equal('localhost:9001') 300 // expect(video.serverHost).to.equal('localhost:9001')
301 // expect(video.account).to.equal('root') 301 // expect(video.accountName).to.equal('root')
302 // expect(video.isLocal).to.be.true 302 // expect(video.isLocal).to.be.true
303 // expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) 303 // expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ])
304 // expect(dateIsValid(video.createdAt)).to.be.true 304 // expect(dateIsValid(video.createdAt)).to.be.true
@@ -563,7 +563,8 @@ describe('Test a single server', function () {
563 expect(video.nsfw).to.be.ok 563 expect(video.nsfw).to.be.ok
564 expect(video.description).to.equal('my super description updated') 564 expect(video.description).to.equal('my super description updated')
565 expect(video.serverHost).to.equal('localhost:9001') 565 expect(video.serverHost).to.equal('localhost:9001')
566 expect(video.account).to.equal('root') 566 expect(video.accountName).to.equal('root')
567 expect(video.account.name).to.equal('root')
567 expect(video.isLocal).to.be.true 568 expect(video.isLocal).to.be.true
568 expect(video.tags).to.deep.equal([ 'tagup1', 'tagup2' ]) 569 expect(video.tags).to.deep.equal([ 'tagup1', 'tagup2' ])
569 expect(dateIsValid(video.createdAt)).to.be.true 570 expect(dateIsValid(video.createdAt)).to.be.true
@@ -612,7 +613,7 @@ describe('Test a single server', function () {
612 expect(video.nsfw).to.be.ok 613 expect(video.nsfw).to.be.ok
613 expect(video.description).to.equal('my super description updated') 614 expect(video.description).to.equal('my super description updated')
614 expect(video.serverHost).to.equal('localhost:9001') 615 expect(video.serverHost).to.equal('localhost:9001')
615 expect(video.account).to.equal('root') 616 expect(video.accountName).to.equal('root')
616 expect(video.isLocal).to.be.true 617 expect(video.isLocal).to.be.true
617 expect(video.tags).to.deep.equal([ 'supertag', 'tag1', 'tag2' ]) 618 expect(video.tags).to.deep.equal([ 'supertag', 'tag1', 'tag2' ])
618 expect(dateIsValid(video.createdAt)).to.be.true 619 expect(dateIsValid(video.createdAt)).to.be.true
@@ -652,7 +653,7 @@ describe('Test a single server', function () {
652 expect(video.nsfw).to.be.ok 653 expect(video.nsfw).to.be.ok
653 expect(video.description).to.equal('hello everybody') 654 expect(video.description).to.equal('hello everybody')
654 expect(video.serverHost).to.equal('localhost:9001') 655 expect(video.serverHost).to.equal('localhost:9001')
655 expect(video.account).to.equal('root') 656 expect(video.accountName).to.equal('root')
656 expect(video.isLocal).to.be.true 657 expect(video.isLocal).to.be.true
657 expect(video.tags).to.deep.equal([ 'supertag', 'tag1', 'tag2' ]) 658 expect(video.tags).to.deep.equal([ 'supertag', 'tag1', 'tag2' ])
658 expect(dateIsValid(video.createdAt)).to.be.true 659 expect(dateIsValid(video.createdAt)).to.be.true