Skip to content

Commit 156f4b5

Browse files
authored
fix(tests): Fix Express scope separation tests. (#3942)
1 parent fdee17e commit 156f4b5

File tree

1 file changed

+8
-3
lines changed
  • packages/node/test/manual/express-scope-separation

1 file changed

+8
-3
lines changed

packages/node/test/manual/express-scope-separation/start.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,27 @@ Sentry.init({
3232
dsn: 'http://[email protected]/1337',
3333
transport: DummyTransport,
3434
beforeSend(event) {
35-
if (event.message === 'Error: foo') {
35+
if (event.transaction === 'GET /foo') {
3636
assertTags(event.tags, {
3737
global: 'wat',
3838
foo: 'wat',
3939
});
40-
} else if (event.message === 'Error: bar') {
40+
} else if (event.transaction === 'GET /bar') {
4141
assertTags(event.tags, {
4242
global: 'wat',
4343
bar: 'wat',
4444
});
45-
} else if (event.message === 'Error: baz') {
45+
} else if (event.transaction === 'GET /baz') {
4646
assertTags(event.tags, {
4747
global: 'wat',
4848
baz: 'wat',
4949
});
50+
} else {
51+
assertTags(event.tags, {
52+
global: 'wat',
53+
});
5054
}
55+
5156
return event;
5257
},
5358
});

0 commit comments

Comments
 (0)