Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #68

Merged
merged 1 commit into from
Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
})