From 9c97bff0f25972351d04615f43ee68219e7a210e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20M=C3=BCller?= Date: Mon, 6 Nov 2023 11:36:56 +0100 Subject: [PATCH] Fixed tests using renamed function --- libs/extensions/std/exec/src/file-util.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/extensions/std/exec/src/file-util.spec.ts b/libs/extensions/std/exec/src/file-util.spec.ts index a469e6a92..decef2317 100644 --- a/libs/extensions/std/exec/src/file-util.spec.ts +++ b/libs/extensions/std/exec/src/file-util.spec.ts @@ -7,23 +7,23 @@ import { FileExtension, MimeType } from '@jvalue/jayvee-execution'; import { inferFileExtensionFromContentTypeString, inferFileExtensionFromFileExtensionString, - inferMimeTypeFromContentTypeString, + inferMimeTypeFromFileExtensionString, } from './file-util'; describe('Validation of file-util', () => { describe('Function inferMimeTypeFromContentTypeString', () => { it('should diagnose no error on known mimeType', () => { - const result = inferMimeTypeFromContentTypeString('txt'); + const result = inferMimeTypeFromFileExtensionString('txt'); expect(result).toEqual(MimeType.TEXT_PLAIN); }); it('should diagnose no error on undefined input', () => { - const result = inferMimeTypeFromContentTypeString(undefined); + const result = inferMimeTypeFromFileExtensionString(undefined); expect(result).toEqual(undefined); }); it('should diagnose no error on unknown mimeType', () => { - const result = inferMimeTypeFromContentTypeString('unity'); + const result = inferMimeTypeFromFileExtensionString('unity'); expect(result).toEqual(undefined); });