diff --git a/index.js b/index.js index b222b1d..6434f0a 100644 --- a/index.js +++ b/index.js @@ -190,7 +190,6 @@ function formatDate(date) { * @returns {!Array} Builds to bisect in * commit order. */ -// eslint-disable-next-line import/no-unused-modules export { default as getBuildList } from './lib/get-build-list.js'; /** Performs regression range reduction, using bisection, on Node.js builds diff --git a/test/index.js b/test/index.js index 4347add..dfd6303 100644 --- a/test/index.js +++ b/test/index.js @@ -7,7 +7,8 @@ import assert from 'assert'; // TODO [engine:node@>=14]: import { readFile } from 'fs/promises' import { promises as fsPromises } from 'fs'; -import { bisectRange, bisectBuilds } from '../index.js'; +import { bisectRange, bisectBuilds, getBuildList } from '../index.js'; +import getBuildListPrivate from '../lib/get-build-list.js'; const { readFile } = fsPromises; @@ -139,3 +140,10 @@ describe('bisectRange', () => { ); }); }); + +describe('getBuildList', () => { + // Tests are in test/get-build-list.js + it('is exported from ./lib/get-build-list.js', () => { + assert.strictEqual(getBuildList, getBuildListPrivate); + }); +});