UNPKG

alaaeta-starwars

Version:
19 lines (17 loc) 582 B
var expect = require('chai').expect; var starWar = require('./index'); describe('starwars-name',function (){ describe('all',function (){ it('should be an array of string',function (){ expect(starWar.all).to.be.satisfy(isArrayOfString); function isArrayOfString(array) { return array.every(function (item){ return typeof item === 'string'; }) } }); it('should contain edhejd', function () { expect(starWar.all).to.be.include('edhejd') }); }); });