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 => {