Skip to content

Commit

Permalink
Remove tight coupling between logger and config
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Jul 19, 2024
1 parent 8592587 commit 0f5a87a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/dd-trace/test/log.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,15 @@ describe('log', () => {
it('should not be possbile to mutate config object returned by getConfig', () => {
const log = require('../src/log')
const config = log.getConfig()
<<<<<<< HEAD
config.enabled = 1
config.logger = 1
config.logLevel = 1
=======
expect(() => { config.enabled = 1 }).to.throw()
expect(() => { config.logger = 1 }).to.throw()
expect(() => { config.logLevel = 1 }).to.throw()
>>>>>>> 7a733d4ae (Remove tight coupling between logger and config)
expect(log.getConfig()).to.deep.equal({
enabled: false,
logger: undefined,
Expand Down

0 comments on commit 0f5a87a

Please sign in to comment.