diff options
author | Chocobozzz <me@florianbigard.com> | 2023-04-21 15:00:01 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | d102de1b38f2877463529c3b27bd35ffef4fd8bf (patch) | |
tree | 31fa0bdf26ad7a2ee46d600d804a6f03260266c8 /server/tests/lib | |
parent | 2fe978744e5b74eb824e4d79c1bb9b840169f125 (diff) | |
download | PeerTube-d102de1b38f2877463529c3b27bd35ffef4fd8bf.tar.gz PeerTube-d102de1b38f2877463529c3b27bd35ffef4fd8bf.tar.zst PeerTube-d102de1b38f2877463529c3b27bd35ffef4fd8bf.zip |
Add runner server tests
Diffstat (limited to 'server/tests/lib')
-rw-r--r-- | server/tests/lib/video-constant-registry-factory.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/lib/video-constant-registry-factory.ts b/server/tests/lib/video-constant-registry-factory.ts index e399ac5a5..c3480dc12 100644 --- a/server/tests/lib/video-constant-registry-factory.ts +++ b/server/tests/lib/video-constant-registry-factory.ts | |||
@@ -63,7 +63,7 @@ describe('VideoConstantManagerFactory', function () { | |||
63 | it('Should be able to add a video licence constant', () => { | 63 | it('Should be able to add a video licence constant', () => { |
64 | const successfullyAdded = videoLicenceManager.addConstant(42, 'European Union Public Licence') | 64 | const successfullyAdded = videoLicenceManager.addConstant(42, 'European Union Public Licence') |
65 | expect(successfullyAdded).to.be.true | 65 | expect(successfullyAdded).to.be.true |
66 | expect(videoLicenceManager.getConstantValue(42)).to.equal('European Union Public Licence') | 66 | expect(videoLicenceManager.getConstantValue(42 as any)).to.equal('European Union Public Licence') |
67 | }) | 67 | }) |
68 | 68 | ||
69 | it('Should be able to reset video licence constants', () => { | 69 | it('Should be able to reset video licence constants', () => { |
@@ -87,9 +87,9 @@ describe('VideoConstantManagerFactory', function () { | |||
87 | }) | 87 | }) |
88 | 88 | ||
89 | it('Should be able to add a video playlist privacy constant', () => { | 89 | it('Should be able to add a video playlist privacy constant', () => { |
90 | const successfullyAdded = playlistPrivacyManager.addConstant(42, 'Friends only') | 90 | const successfullyAdded = playlistPrivacyManager.addConstant(42 as any, 'Friends only') |
91 | expect(successfullyAdded).to.be.true | 91 | expect(successfullyAdded).to.be.true |
92 | expect(playlistPrivacyManager.getConstantValue(42)).to.equal('Friends only') | 92 | expect(playlistPrivacyManager.getConstantValue(42 as any)).to.equal('Friends only') |
93 | }) | 93 | }) |
94 | 94 | ||
95 | it('Should be able to reset video playlist privacy constants', () => { | 95 | it('Should be able to reset video playlist privacy constants', () => { |
@@ -113,9 +113,9 @@ describe('VideoConstantManagerFactory', function () { | |||
113 | }) | 113 | }) |
114 | 114 | ||
115 | it('Should be able to add a video privacy constant', () => { | 115 | it('Should be able to add a video privacy constant', () => { |
116 | const successfullyAdded = videoPrivacyManager.addConstant(42, 'Friends only') | 116 | const successfullyAdded = videoPrivacyManager.addConstant(42 as any, 'Friends only') |
117 | expect(successfullyAdded).to.be.true | 117 | expect(successfullyAdded).to.be.true |
118 | expect(videoPrivacyManager.getConstantValue(42)).to.equal('Friends only') | 118 | expect(videoPrivacyManager.getConstantValue(42 as any)).to.equal('Friends only') |
119 | }) | 119 | }) |
120 | 120 | ||
121 | it('Should be able to reset video privacy constants', () => { | 121 | it('Should be able to reset video privacy constants', () => { |