import { expect } from 'chai';
import diffArray from '../src/diffTwoArrays';

describe('diffTwoArrays', () => {
  it('is a function', () => {
    expect(diffArray).to.be.a('function');
  });

  it('should return an array', () => {
    expect(diffArray()).to.be.an('array');
  });

  it('return diffs from only one array', () => {
    const arr1 = ['diorite', 'andesite', 'grass', 'dirt', 'pink wool', 'dead shrub'];
    const arr2 = ['diorite', 'andesite', 'grass', 'dirt', 'dead shrub'];
    const result = diffArray(arr1, arr2);
    const expected = ['pink wool'];

    expect(result).to.equal(expected);
  });
});

@@ -308,24 +308,33 @@
 ly one array
+ : string
 ', () =%3E %7B%0A 
@@ -592,16 +592,1759 @@
 ult).to.
+deep.equal(expected);%0A  %7D);%0A%0A  it('return diffs from both arrays : string', () =%3E %7B%0A    const arr1 = %5B'andesite', 'grass', 'dirt', 'pink wool', 'dead shrub'%5D;%0A    const arr2 = %5B'diorite', 'andesite', 'grass', 'dirt', 'dead shrub'%5D;%0A    const result = diffArray(arr1, arr2);%0A    const expected = %5B'diorite', 'pink wool'%5D;%0A%0A    expect(result).to.deep.equal(expected);%0A  %7D);%0A%0A  it('return %5B%5D when there is no diffs : string', () =%3E %7B%0A    const arr1 = %5B'andesite', 'grass', 'dirt', 'dead shrub'%5D;%0A    const arr2 = %5B'andesite', 'grass', 'dirt', 'dead shrub'%5D;%0A    const result = diffArray(arr1, arr2);%0A    const expected = %5B%5D;%0A%0A    expect(result).to.deep.equal(expected);%0A  %7D);%0A%0A  it('return diffs from only one array : number', () =%3E %7B%0A    const arr1 = %5B1, 2, 3, 5%5D;%0A    const arr2 = %5B1, 2, 3, 4, 5%5D;%0A    const result = diffArray(arr1, arr2);%0A    const expected = %5B4%5D;%0A%0A    expect(result).to.deep.equal(expected);%0A  %7D);%0A%0A  it('return diffs from both arrays : number&number', () =%3E %7B%0A    const arr1 = %5B1, 'calf', 3, 'piglet'%5D;%0A    const arr2 = %5B1, 'calf', 3, 4%5D;%0A    const result = diffArray(arr1, arr2);%0A    const expected = %5B'piglet', 4%5D;%0A%0A    expect(result).to.deep.equal(expected);%0A  %7D);%0A%0A  it('return diffs: one empty array', () =%3E %7B%0A    const arr1 = %5B%5D;%0A    const arr2 = %5B'snuffleupagus', 'cookie monster', 'elmo'%5D;%0A    const result = diffArray(arr1, arr2);%0A    const expected = %5B'snuffleupagus', 'cookie monster', 'elmo'%5D;%0A%0A    expect(result).to.deep.equal(expected);%0A  %7D);%0A%0A  it('return diffs from two totally different arrays', () =%3E %7B%0A    const arr1 = %5B1, 'calf', 3, 'piglet'%5D;%0A    const arr2 = %5B7, 'filly'%5D;%0A    const result = diffArray(arr1, arr2);%0A    const expected = %5B1, 'calf', 3, 'piglet', 7, 'filly'%5D;%0A%0A    expect(result).to.deep.
 equal(ex

Add more testing for diffTwoArrays