Skip to content

Commit

Permalink
Merge pull request #68 from pinojs/update-deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
jsumners authored Jun 10, 2022
2 parents 546f628 + 568ef3d commit 6905594
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
contents: read
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
node-version: [14, 16, 18]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@main
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@main
with:
node-version: ${{ matrix.node-version }}
- name: Restore cached dependencies
uses: actions/cache@v3
uses: actions/cache@main
with:
path: node_modules
key: node-modules-${{ hashFiles('package.json') }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"devDependencies": {
"flush-write-stream": "^2.0.0",
"pino": "^6.11.0",
"pino": "^8.0.0",
"pre-commit": "^1.1.3",
"proxyquire": "^2.1.3",
"standard": "^17.0.0",
Expand Down
16 changes: 8 additions & 8 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ test('uses the default temp path for level configuration if not specified', func
}
const proxiedArbor = proxyquire('../', { path: pathStub })
proxiedArbor()
t.is(selectedPath, path.join(os.tmpdir(), 'aborsculpt.json'))
t.equal(selectedPath, path.join(os.tmpdir(), 'aborsculpt.json'))
})

test('applies a single level to a single logger', function (t) {
t.plan(1)
const fp = '/tmp/arbor.' + uuid()
const dest = writeStream(function (chunk, enc, cb) {
const line = JSON.parse(chunk)
t.is(line.level, 20)
t.equal(line.level, 20)
cb()
})

Expand All @@ -51,7 +51,7 @@ test('applies a single level to multiple loggers', function (t) {
const fp = '/tmp/arbor.' + uuid()
const dest = writeStream(function (chunk, enc, cb) {
const line = JSON.parse(chunk)
t.is(line.level, 20)
t.equal(line.level, 20)
cb()
})

Expand All @@ -77,9 +77,9 @@ test('applies multiple levels to corresponding levels', function (t) {
const dest = writeStream(function (chunk, enc, cb) {
const line = JSON.parse(chunk)
if (line.foo === undefined) {
t.is(line.level, 20)
t.equal(line.level, 20)
} else {
t.is(line.level, 10)
t.equal(line.level, 10)
}
cb()
})
Expand Down Expand Up @@ -109,7 +109,7 @@ test('fails silently if file does not exist', function (t) {
interval: 100
})
setTimeout(function () {
t.is(log.level, 'info')
t.equal(log.level, 'info')
}, 110)
})

Expand All @@ -126,8 +126,8 @@ test('modifies only as many loggers as there are levels', function (t) {

fs.writeFileSync(fp, JSON.stringify({ levels: ['debug'] }))
setTimeout(function () {
t.is(parent.level, 'debug')
t.is(child.level, 'info')
t.equal(parent.level, 'debug')
t.equal(child.level, 'info')
fs.unlink(fp, () => {})
}, 110)
})

0 comments on commit 6905594

Please sign in to comment.