Skip to content

Commit 71d7a8f

Browse files
committed
test: Update frames order in browser integration tests
1 parent 04add7a commit 71d7a8f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/browser/test/integration/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ for (var idx in frames) {
127127
var urlWithBlacklistedUrl = new Error('filter');
128128
urlWithBlacklistedUrl.stack =
129129
'Error: bar\n' +
130-
' at baz(http://localhost:5000/baz.js:2:9)\n' +
130+
' at http://localhost:5000/foo.js:7:19\n' +
131131
' at bar(http://localhost:5000/bar.js:2:3)\n' +
132-
' at http://localhost:5000/foo.js:7:19';
132+
' at baz(http://localhost:5000/baz.js:2:9)\n';
133133

134134
/**
135135
* > foo-pass.js file called a function in bar-pass.js
@@ -141,9 +141,9 @@ for (var idx in frames) {
141141
var urlWithoutBlacklistedUrl = new Error('pass');
142142
urlWithoutBlacklistedUrl.stack =
143143
'Error: bar\n' +
144-
' at baz(http://localhost:5000/baz-pass.js:2:9)\n' +
144+
' at http://localhost:5000/foo-pass.js:7:19\n' +
145145
' at bar(http://localhost:5000/bar-pass.js:2:3)\n' +
146-
' at http://localhost:5000/foo-pass.js:7:19';
146+
' at baz(http://localhost:5000/baz-pass.js:2:9)\n';
147147

148148
Sentry.captureException(urlWithBlacklistedUrl);
149149
Sentry.captureException(urlWithoutBlacklistedUrl);

packages/core/src/integrations/inboundfilters.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ export class InboundFilters implements Integration {
177177
private getEventFilterUrl(event: SentryEvent): string | null {
178178
try {
179179
if (event.stacktrace) {
180-
// tslint:disable-next-line:no-unsafe-any
180+
// tslint:disable:no-unsafe-any
181181
const frames = (event as any).stacktrace.frames;
182182
return frames[frames.length - 1].filename;
183183
} else if (event.exception) {
184-
// tslint:disable-next-line:no-unsafe-any
184+
// tslint:disable:no-unsafe-any
185185
const frames = (event as any).exception.values[0].stacktrace.frames;
186186
return frames[frames.length - 1].filename;
187187
} else {

0 commit comments

Comments
 (0)