Skip to content

Commit

Permalink
Fixed tests using renamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x98 committed Nov 6, 2023
1 parent 5a2d5c2 commit 9c97bff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/extensions/std/exec/src/file-util.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 9c97bff

Please sign in to comment.