import {expect} from 'chai'
import warcraftNames from '.'

describe('warcraft-names', () => {
  it('should have a list of all available names', () => {
    expect(warcraftNames.all).to.satisfy(isArrayOfStrings)
  })

  it('should allow me to get a random name from the list', () => {
    expect(warcraftNames.random()).to.satisfy(isIncludedIn(warcraftNames.all))
  })
})

function isArrayOfStrings(array) {
  return array.every(i => typeof i === 'string')
}

function isIncludedIn(array) {
  return item => array.includes(item)
}

@@ -20,16 +20,17 @@
 m 'chai'
+;
 %0Aimport 
@@ -51,16 +51,17 @@
 from '.'
+;
 %0A%0Adescri
@@ -205,21 +205,23 @@
 Strings)
+;
 %0A  %7D)
+;
 %0A%0A  it('
@@ -363,16 +363,19 @@
 ll))
+;
 %0A  %7D)
+;
 %0A%7D)
+;
 %0A%0Afu
@@ -455,16 +455,17 @@
 string')
+;
 %0A%7D%0A%0Afunc
@@ -528,11 +528,12 @@
 es(item)
+;
 %0A%7D%0A

add semicolons to test