From 568ef3d999400d18b839732309ec2d7299604b05 Mon Sep 17 00:00:00 2001 From: James Sumners Date: Fri, 10 Jun 2022 12:40:27 -0400 Subject: [PATCH] Update dependencies --- .github/workflows/ci.yml | 8 ++++---- package.json | 2 +- test/index.test.js | 16 ++++++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce056bb..8a3c92d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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') }} diff --git a/package.json b/package.json index 7f1b6b1..7fb4017 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/index.test.js b/test/index.test.js index 032197b..9fc89cf 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -20,7 +20,7 @@ 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) { @@ -28,7 +28,7 @@ test('applies a single level to a single logger', 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() }) @@ -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() }) @@ -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() }) @@ -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) }) @@ -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) })