Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrelucas committed May 23, 2024
1 parent 8e9630f commit cbce832
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions plugins/node/instrumentation-mongoose/test/mongoose.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ describe('mongoose instrumentation', () => {
const spans = getTestSpans();
expect(spans.length).toBe(1);
assertSpan(spans[0] as ReadableSpan);
expect(spans[0].attributes[SEMATTRS_DB_OPERATION]).toBe(
'save'
);
expect(spans[0].attributes[SEMATTRS_DB_OPERATION]).toBe('save');
const statement = getStatement(spans[0] as ReadableSpan);
expect(statement.document).toEqual(expect.objectContaining(document));

Expand Down Expand Up @@ -198,9 +196,7 @@ describe('mongoose instrumentation', () => {
const spans = getTestSpans();
expect(spans.length).toBe(1);
assertSpan(spans[0] as ReadableSpan);
expect(spans[0].attributes[SEMATTRS_DB_OPERATION]).toBe(
'save'
);
expect(spans[0].attributes[SEMATTRS_DB_OPERATION]).toBe('save');
const statement = getStatement(spans[0] as ReadableSpan);
expect(statement.document).toEqual(expect.objectContaining(document));

Expand All @@ -224,9 +220,7 @@ describe('mongoose instrumentation', () => {

expect(spans.length).toBe(1);
assertSpan(spans[0] as ReadableSpan);
expect(spans[0].attributes[SEMATTRS_DB_OPERATION]).toBe(
'save'
);
expect(spans[0].attributes[SEMATTRS_DB_OPERATION]).toBe('save');
const statement = getStatement(spans[0] as ReadableSpan);
expect(statement.document).toEqual(expect.objectContaining(document));
done();
Expand All @@ -246,9 +240,7 @@ describe('mongoose instrumentation', () => {

expect(spans.length).toBe(1);
assertSpan(spans[0] as ReadableSpan);
expect(spans[0].attributes[SEMATTRS_DB_OPERATION]).toBe(
'save'
);
expect(spans[0].attributes[SEMATTRS_DB_OPERATION]).toBe('save');
const statement = getStatement(spans[0] as ReadableSpan);
expect(statement.document).toEqual(expect.objectContaining(document));
done();
Expand Down

0 comments on commit cbce832

Please sign in to comment.