Skip to content

Commit

Permalink
chore: PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bizob2828 committed Sep 6, 2024
1 parent e20aad8 commit 486b454
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/unit/util/application-logging.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,13 @@ test('truncate', async (t) => {
{ value: [], type: 'array' },
{ value: function () {}, type: 'function' }
]
await Promise.all(
negativeTests.map(async ({ value, type }) => {
await t.test(`should not truncate ${type}`, () => {
const newValue = loggingUtils.truncate(value)
assert.deepEqual(value, newValue)
})
for (const negativeTest of negativeTests) {
const { value, type } = negativeTest
await t.test(`should not truncate ${type}`, () => {
const newValue = loggingUtils.truncate(value)
assert.deepEqual(value, newValue)
})
)
}
})

test('Application Logging Config Tests', async (t) => {
Expand Down Expand Up @@ -129,6 +128,7 @@ test('Application Logging Config Tests', async (t) => {

test('incrementLoggingLinesMetrics', async (t) => {
t.beforeEach((ctx) => {
console.log('before test')
ctx.nr = {}
const callCountStub = { incrementCallCount: sinon.stub() }
ctx.nr.metricsStub = {
Expand Down

0 comments on commit 486b454

Please sign in to comment.