Comparing version 7.4.1 to 7.4.2
@@ -26,3 +26,3 @@ "use strict"; | ||
sequence: { | ||
type: 'integer', | ||
type: 'string', | ||
}, | ||
@@ -29,0 +29,0 @@ time: { |
@@ -33,2 +33,3 @@ "use strict"; | ||
const { Roarr, ROARR, } = await Promise.resolve().then(() => __importStar(require('../../../src/Roarr'))); | ||
sinon.restore(); | ||
const write = sinon.stub(ROARR, 'write'); | ||
@@ -48,3 +49,15 @@ // eslint-disable-next-line @typescript-eslint/no-empty-function | ||
t.is(write.firstCall.args.length, 1); | ||
t.regex(write.firstCall.args[0], /{"context":{"logLevel":30},"message":"foo","sequence":0,"time":\d+,"version":"\d\.\d\.\d"}/); | ||
t.regex(write.firstCall.args[0], /{"context":{"logLevel":30},"message":"foo","sequence":"0","time":\d+,"version":"\d\.\d\.\d"}/); | ||
}); | ||
test('produces sequence', (t) => { | ||
const { Roarr, write, } = t.context; | ||
const log = Roarr; | ||
log.adopt(() => { | ||
log.adopt(() => { | ||
log.info('foo'); | ||
}); | ||
}); | ||
t.is(write.callCount, 1); | ||
t.is(write.firstCall.args.length, 1); | ||
t.regex(write.firstCall.args[0], /{"context":{"logLevel":30},"message":"foo","sequence":"1.0.0","time":\d+,"version":"\d\.\d\.\d"}/); | ||
}); |
@@ -76,3 +76,3 @@ { | ||
"typings": "./dist/src/Roarr.d.ts", | ||
"version": "7.4.1" | ||
"version": "7.4.2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75449
1507