From bbd5aa7ead5f1554a0872963f957effc26d8c630 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Aug 2022 15:25:58 +0200 Subject: Reimplement a typed omit function --- server/tests/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests/client.ts') 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 @@ import 'mocha' import * as chai from 'chai' -import { omit } from 'lodash' +import { omit } from '@shared/core-utils' import { Account, HTMLServerConfig, @@ -31,7 +31,7 @@ function checkIndexTags (html: string, title: string, description: string, css: expect(html).to.contain('') expect(html).to.contain('') - const htmlConfig: HTMLServerConfig = omit(config, 'signup') + const htmlConfig: HTMLServerConfig = omit(config, [ 'signup' ]) const configObjectString = JSON.stringify(htmlConfig) const configEscapedString = JSON.stringify(configObjectString) -- cgit v1.2.3