Skip to content

Commit c595cae

Browse files
committed
fix lint for instr-fastify
1 parent 8e0db93 commit c595cae

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

plugins/node/opentelemetry-instrumentation-fastify/test/instrumentation.test.ts

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ describe('fastify', () => {
168168
'request handler - fastify -> @fastify/express'
169169
);
170170
const baseSpan = spans[1];
171-
assert.strictEqual(span.parentSpanContext?.spanId, baseSpan.spanContext().spanId);
171+
assert.strictEqual(
172+
span.parentSpanContext?.spanId,
173+
baseSpan.spanContext().spanId
174+
);
172175
});
173176

174177
it('should generate span for named handler', async () => {
@@ -192,7 +195,10 @@ describe('fastify', () => {
192195
assert.strictEqual(span.name, 'request handler - namedHandler');
193196

194197
const baseSpan = spans[1];
195-
assert.strictEqual(span.parentSpanContext?.spanId, baseSpan.spanContext().spanId);
198+
assert.strictEqual(
199+
span.parentSpanContext?.spanId,
200+
baseSpan.spanContext().spanId
201+
);
196202
});
197203

198204
it('should generate span for 404 request', async () => {
@@ -209,7 +215,10 @@ describe('fastify', () => {
209215
});
210216
assert.strictEqual(span.name, 'request handler - basic404');
211217
const baseSpan = spans[1];
212-
assert.strictEqual(span.parentSpanContext?.spanId, baseSpan.spanContext().spanId);
218+
assert.strictEqual(
219+
span.parentSpanContext?.spanId,
220+
baseSpan.spanContext().spanId
221+
);
213222
});
214223

215224
describe('when subsystem is registered', () => {
@@ -255,7 +264,10 @@ describe('fastify', () => {
255264
const span = spans[3];
256265
assert.strictEqual(changedRootSpan.name, 'GET /test/:id');
257266
assert.strictEqual(span.name, 'request handler - foo');
258-
assert.strictEqual(span.parentSpanContext?.spanId, spans[2].spanContext().spanId);
267+
assert.strictEqual(
268+
span.parentSpanContext?.spanId,
269+
spans[2].spanContext().spanId
270+
);
259271
});
260272

261273
it('should create span for fastify express runConnect', async () => {
@@ -271,7 +283,10 @@ describe('fastify', () => {
271283
'hook.name': 'onRequest',
272284
});
273285

274-
assert.strictEqual(span.parentSpanContext?.spanId, baseSpan.spanContext().spanId);
286+
assert.strictEqual(
287+
span.parentSpanContext?.spanId,
288+
baseSpan.spanContext().spanId
289+
);
275290
});
276291

277292
it('should create span for fastify express for enhanceRequest', async () => {
@@ -287,7 +302,10 @@ describe('fastify', () => {
287302
'hook.name': 'onRequest',
288303
});
289304

290-
assert.strictEqual(span.parentSpanContext?.spanId, baseSpan.spanContext().spanId);
305+
assert.strictEqual(
306+
span.parentSpanContext?.spanId,
307+
baseSpan.spanContext().spanId
308+
);
291309
});
292310

293311
it('should create span for request', async () => {
@@ -304,7 +322,10 @@ describe('fastify', () => {
304322
'http.route': '/test/:id',
305323
});
306324

307-
assert.strictEqual(span.parentSpanContext?.spanId, baseSpan.spanContext().spanId);
325+
assert.strictEqual(
326+
span.parentSpanContext?.spanId,
327+
baseSpan.spanContext().spanId
328+
);
308329
});
309330

310331
it('should update http.route for http span', async () => {
@@ -328,7 +349,10 @@ describe('fastify', () => {
328349
'hook.name': 'onRequest',
329350
});
330351

331-
assert.strictEqual(span.parentSpanContext?.spanId, baseSpan.spanContext().spanId);
352+
assert.strictEqual(
353+
span.parentSpanContext?.spanId,
354+
baseSpan.spanContext().spanId
355+
);
332356
});
333357

334358
it('should update span with error that was raised', async () => {

0 commit comments

Comments
 (0)