From 195e5b18c7af8907ce6ee357171f558d6fa2059b Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2020 23:54:16 +0000 Subject: [PATCH] chore(package): update xo to version 0.26.0 --- package.json | 2 +- test/get-commits.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ef6058b3..82a62a73 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "sinon": "^8.0.4", "stream-buffers": "^3.0.2", "tempy": "^0.4.0", - "xo": "^0.25.0" + "xo": "^0.26.0" }, "engines": { "node": ">=10.18" diff --git a/test/get-commits.test.js b/test/get-commits.test.js index fb7cbe56..bc8e6843 100644 --- a/test/get-commits.test.js +++ b/test/get-commits.test.js @@ -82,7 +82,7 @@ test('Get all commits between lastRelease.gitHead and a shas', async t => { // Verify the commits created and retrieved by the module are identical t.is(result.length, 1); - t.deepEqual(result, commits.slice(1, commits.length - 1)); + t.deepEqual(result, commits.slice(1, -1)); }); test('Return empty array if lastRelease.gitHead is the last commit', async t => {