Skip to content

Commit

Permalink
Add small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed Oct 27, 2023
1 parent 52ffe68 commit ce70ad4
Showing 1 changed file with 10 additions and 25 deletions.
35 changes: 10 additions & 25 deletions packages/opentelemetry-mutable-baggage/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
import {
W3CMutableBaggagePropagator,
createMutableBaggage,
getActiveMutableBaggage,
getMutableBaggage,
setMutableBaggage
} from '.';
import * as exports from '.';
import { expect, it } from 'vitest';

it('should export `W3CMutableBaggagePropagator()`', () => {
expect(W3CMutableBaggagePropagator).toBeDefined();
});

it('should export `getActiveMutableBaggage()`', () => {
expect(getActiveMutableBaggage).toBeDefined();
});

it('should export `getMutableBaggage()`', () => {
expect(getMutableBaggage).toBeDefined();
});

it('should export `setMutableBaggage()`', () => {
expect(setMutableBaggage).toBeDefined();
});

it('should export `createMutableBaggage()`', () => {
expect(createMutableBaggage).toBeDefined();
it('should have the correct exports', () => {
expect({ ...exports }).toEqual({
MutableBaggageImpl: expect.any(Function),
W3CMutableBaggagePropagator: expect.any(Function),
createMutableBaggage: expect.any(Function),
getActiveMutableBaggage: expect.any(Function),
getMutableBaggage: expect.any(Function),
setMutableBaggage: expect.any(Function)
});
});

0 comments on commit ce70ad4

Please sign in to comment.