Skip to content

Commit 0b44b9d

Browse files
committed
remove ts-expect-error
1 parent a6d7a69 commit 0b44b9d

File tree

1 file changed

+2
-2
lines changed
  • dev-packages/node-integration-tests/suites/tracing/meta-tags

1 file changed

+2
-2
lines changed

dev-packages/node-integration-tests/suites/tracing/meta-tags/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ describe('getTraceMetaTags', () => {
1616
baggage: 'sentry-environment=production',
1717
});
1818

19-
// @ts-expect-error - this is a string, types just don't work well
20-
const html = typeof response === 'object' && (response?.response as unknown as string);
19+
const html =
20+
typeof response === 'object' && response && 'response' in response && (response?.response as unknown as string);
2121

2222
expect(html).toMatch(/<meta name="sentry-trace" content="cd7ee7a6fe3ebe7ab9c3271559bc203c-[a-z0-9]{16}-1"\/>/);
2323
expect(html).toContain('<meta name="baggage" content="sentry-environment=production"/>');

0 commit comments

Comments
 (0)