Skip to content

Commit

Permalink
chore: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeppner-dataport committed Nov 26, 2024
1 parent 5cc46a1 commit 68c08d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ describe('InvalidLinkUrlLoggableException', () => {
const url = 'http://invalid.url';
const message = 'Invalid URL';
const exception = new InvalidLinkUrlLoggableException(url, message);
const logMessage = exception.getLogMessage();

expect(logMessage).toEqual({
expect(exception.getLogMessage()).toEqual({
type: 'INVALID_LINK_URL',
message,
stack: exception.stack,
Expand All @@ -21,10 +20,4 @@ describe('InvalidLinkUrlLoggableException', () => {
},
});
});

it('should have the correct message property', () => {
const message = 'Invalid URL';
const exception = new InvalidLinkUrlLoggableException('http://invalid.url', message);
expect(exception.message).toBe(message);
});
});
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* istanbul ignore file */
import { BadRequestException } from '@nestjs/common';
import { ErrorLogMessage, Loggable, LogMessage, ValidationErrorLogMessage } from '@src/core/logger';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class MetaTagExternalUrlService {
}

const { ogTitle, ogDescription, ogImage } = result;
console.log('tryExtractMetaTags result', result);

return {
title: ogTitle ?? '',
description: ogDescription ?? '',
Expand Down

0 comments on commit 68c08d7

Please sign in to comment.