text: const isPlainObj = require('is-plain-obj');
  const {NpmPackageJsonLint} = require('npm-package-json-lint');
  const config = require('../index.js');
  
  describe('npm-package-json-lint config tests', () => {
    describe('npm-package-json-lint config object', () => {
      test('should be an object', () => {
        expect(isPlainObj(config)).toBe(true);
      });
    });
  
    describe('rules', () => {
      test('should be an object', () => {
        expect(isPlainObj(config.rules)).toBe(true);
      });
    });
  
    describe('run npm-package-json-lint and make sure it runs', () => {
      test('npm-package-json-lint should run without failing', () => {
        const packageJsonData = {
          author: 'Caitlin Snow'
        };
        const npmPackageJsonLint = new NpmPackageJsonLint({
          packageJsonObject: packageJsonData,
          config,
          packageJsonFilePath: 'npm-package-json-lint-config-tc'
        });
  
        const output = npmPackageJsonLint.lint();
        const expectedErrorCount = 14;
  
        expect(output.results).toHaveLength(1);
        expect(output.results[0].issues).toHaveLength(expectedErrorCount);
        expect(output.ignoreCount).toStrictEqual(0);
        expect(output.errorCount).toStrictEqual(expectedErrorCount);
        expect(output.warningCount).toStrictEqual(0);
      });
    });
  });
  