UNPKG

repolinter

Version:
22 lines (17 loc) 663 B
// Copyright 2017 TODO Group. All rights reserved. // SPDX-License-Identifier: Apache-2.0 const path = require('path') const chai = require('chai') const expect = chai.expect describe('packagers', () => { const packagers = require('../../axioms/packagers') const FileSystem = require('../../lib/file_system') it('repolinter is only npm', async () => { const fileSystem = new FileSystem(path.resolve('.')) const actual = await packagers(fileSystem) expect(actual.passed).to.equal(true) expect(actual.targets).to.have.length(1) expect(actual.targets[0].passed).to.equal(true) expect(actual.targets[0].path).to.equal('npm') }) })