text: const ruleModule = require('./../../../src/rules/require-engines');
  
  const {lint, ruleType} = ruleModule;
  
  describe('require-engines Unit Tests', () => {
    describe('a rule type value should be exported', () => {
      test('it should equal "standard"', () => {
        expect(ruleType).toStrictEqual('standard');
      });
    });
  
    describe('when package.json has node', () => {
      test('true should be returned', () => {
        const packageJsonData = {
          engines: 'engines'
        };
        const response = lint(packageJsonData, 'error');
  
        expect(response).toBe(true);
      });
    });
  
    describe('when package.json does not have node', () => {
      test('LintIssue object should be returned', () => {
        const packageJsonData = {};
        const response = lint(packageJsonData, 'error');
  
        expect(response.lintId).toStrictEqual('require-engines');
        expect(response.severity).toStrictEqual('error');
        expect(response.node).toStrictEqual('engines');
        expect(response.lintMessage).toStrictEqual('engines is required');
      });
    });
  });
  