diff --git a/test/fixtures/validate-target-directory/safe-index-with-banner/index.js b/test/fixtures/validate-target-directory/safe-index-with-banner/index.js new file mode 100644 index 0000000..69a1f5b --- /dev/null +++ b/test/fixtures/validate-target-directory/safe-index-with-banner/index.js @@ -0,0 +1,3 @@ +/* eslint-disable */ + +// @create-index diff --git a/test/validateTargetDirectory.js b/test/validateTargetDirectory.js index f75f96d..44f7c55 100644 --- a/test/validateTargetDirectory.js +++ b/test/validateTargetDirectory.js @@ -36,6 +36,11 @@ describe('validateTargetDirectory()', () => { expect(validateTargetDirectory(path.resolve(fixturesPath, 'safe-index'))).to.equal(true); }); }); + context('safe with banner', () => { + it('returns true', () => { + expect(validateTargetDirectory(path.resolve(fixturesPath, 'safe-index-with-banner'))).to.equal(true); + }); + }); context('unsafe', () => { it('throws an error', () => { expect(() => {