Skip to content

Commit

Permalink
test: update service options provider tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Jul 9, 2023
1 parent 18c0d5f commit cd6a897
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/nestjs-module/test/ogma.provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,14 @@ CreateOgmaInterceptorOptionsFactorySuite.run();

const CreateOgmaServiceOptionsSuite = suite('Create Ogma Service Options');
CreateOgmaServiceOptionsSuite('Should return the service options', () => {
is(createOgmaServiceOptions({ interceptor: {} }), undefined);
equal(createOgmaServiceOptions({}), {});
});
CreateOgmaServiceOptionsSuite('Should return actual options and not undefined', () => {
equal(
createOgmaServiceOptions({
interceptor: {},
service: {
json: false,
color: true,
application: 'something',
},
json: false,
color: true,
application: 'something',
}),
{
color: true,
Expand Down

0 comments on commit cd6a897

Please sign in to comment.