diff options
Diffstat (limited to 'server/tests/lib/video-constant-registry-factory.ts')
-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', () => { |