diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:25:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:25:58 +0200 |
commit | bbd5aa7ead5f1554a0872963f957effc26d8c630 (patch) | |
tree | a32cad420cfabe4eab5df4e3f104fa34f734fa7d /server/tests/client.ts | |
parent | a85d530384761a0af833caac9b38b9834517c9fa (diff) | |
download | PeerTube-bbd5aa7ead5f1554a0872963f957effc26d8c630.tar.gz PeerTube-bbd5aa7ead5f1554a0872963f957effc26d8c630.tar.zst PeerTube-bbd5aa7ead5f1554a0872963f957effc26d8c630.zip |
Reimplement a typed omit function
Diffstat (limited to 'server/tests/client.ts')
-rw-r--r-- | server/tests/client.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/client.ts b/server/tests/client.ts index a8a697f99..35b472d76 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { omit } from 'lodash' | 5 | import { omit } from '@shared/core-utils' |
6 | import { | 6 | import { |
7 | Account, | 7 | Account, |
8 | HTMLServerConfig, | 8 | HTMLServerConfig, |
@@ -31,7 +31,7 @@ function checkIndexTags (html: string, title: string, description: string, css: | |||
31 | expect(html).to.contain('<meta name="description" content="' + description + '" />') | 31 | expect(html).to.contain('<meta name="description" content="' + description + '" />') |
32 | expect(html).to.contain('<style class="custom-css-style">' + css + '</style>') | 32 | expect(html).to.contain('<style class="custom-css-style">' + css + '</style>') |
33 | 33 | ||
34 | const htmlConfig: HTMLServerConfig = omit(config, 'signup') | 34 | const htmlConfig: HTMLServerConfig = omit(config, [ 'signup' ]) |
35 | const configObjectString = JSON.stringify(htmlConfig) | 35 | const configObjectString = JSON.stringify(htmlConfig) |
36 | const configEscapedString = JSON.stringify(configObjectString) | 36 | const configEscapedString = JSON.stringify(configObjectString) |
37 | 37 | ||