/**
 * @author Titus Wormer
 * @copyright 2016 Titus Wormer
 * @license MIT
 * @module aria-attributes
 * @fileoverview Test suite for `aria-attributes`.
 */

'use strict';

/* Module dependencies. */
var test = require('tape');
var ariaAttributes = require('./');

/* Tests. */
test('ariaAttributes', function (t) {
  t.ok(Array.isArray(ariaAttributes), 'should be an `array`');

  ariaAttributes.forEach(function (tagName) {
    t.equal(
      typeof tagName,
      'string',
      '`' + tagName + '` should be a string'
    );
  });

  t.end();
});

/**
 * @author Titus Wormer
 * @copyright 2016 Titus Wormer
 * @license MIT
 * @module aria-attributes
 * @fileoverview Test suite for `aria-attributes`.
 */

'use strict';

/* Module dependencies. */
var assert = require('assert');
var test = require('tape');
var ariaAttributes = require('./');

/* Tests. */
test('ariaAttributes', function (t) {
  t.ok(Array.isArray(ariaAttributes), 'should be an `array`');

  t.doesNotThrow(function () {
    ariaAttributes.forEach(function (tagName) {
      assert(typeof tagName, 'string', '`' + tagName + '` should be a string');
    });
  }, 'should be an array of strings');

  t.end();
});

Refactor to simplify test output