text: // jshint maxstatements: false
  // jscs:disable maximumLineLength
  'use strict';
  
  var assert = require('proclaim');
  var describeCliCall = require('./helper/describe-cli-call');
  
  describe('Pa11y CLI Config', function() {
  
  	describeCliCall('/headers', ['--config', './mock/config/headers.json'], {}, function() {
  
  		it('should respond with an exit code of `0`', function() {
  			assert.strictEqual(this.lastExitCode, 0);
  		});
  
  		it('should respond with the expected messages', function() {
  			assert.isArray(this.lastJsonResponse);
  			assert.lengthEquals(this.lastJsonResponse, 1);
  			assert.deepEqual(this.lastJsonResponse[0], {
  				code: 'WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.2',
  				context: '<title>bar</title>',
  				message: 'Check that the title element describes the document.',
  				selector: 'html > head > title',
  				type: 'notice',
  				typeCode: 3
  			});
  		});
  
  	});
  
  });
  