Skip to content

Commit b0f6157

Browse files
committed
remove the duplicate intruder
1 parent 64d7f0f commit b0f6157

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

packages/react-router/test/server/wrapSentryHandleRequest.test.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -176,27 +176,6 @@ describe('wrapSentryHandleRequest', () => {
176176
});
177177
});
178178

179-
test('should not set span attributes when parameterized path does not exist', async () => {
180-
const mockActiveSpan = {};
181-
const mockRootSpan = { setAttributes: vi.fn() };
182-
183-
(getActiveSpan as unknown as ReturnType<typeof vi.fn>).mockReturnValue(mockActiveSpan);
184-
(getRootSpan as unknown as ReturnType<typeof vi.fn>).mockReturnValue(mockRootSpan);
185-
186-
const originalHandler = vi.fn().mockResolvedValue('test');
187-
const wrappedHandler = wrapSentryHandleRequest(originalHandler);
188-
189-
const routerContext = {
190-
staticHandlerContext: {
191-
matches: [],
192-
},
193-
} as any;
194-
195-
await wrappedHandler(new Request('https://guapo.chulo'), 200, new Headers(), routerContext, {} as any);
196-
197-
expect(mockRootSpan.setAttributes).not.toHaveBeenCalled();
198-
});
199-
200179
describe('getMetaTagTransformer', () => {
201180
beforeEach(() => {
202181
vi.clearAllMocks();

0 commit comments

Comments
 (0)