import { isArrayOfArrays } from "src/collection";

describe("isArrayOfArrays", () => {
  it("handles empty argument", () => {
    expect(isArrayOfArrays()).to.equal(false);
  });

  it("handles empty array", () => {
    expect(isArrayOfArrays([])).to.equal(false);
  });

  it("returns false for collections of non-arrays", () => {
    expect(isArrayOfArrays([1])).to.equal(false);
    expect(isArrayOfArrays([{}])).to.equal(false);
    expect(isArrayOfArrays(['a'])).to.equal(false);
  });

  it("returns false for mixed collections", () => {
    expect(isArrayOfArrays([[], 1, {}])).to.equal(false);
    expect(isArrayOfArrays([1, [], {}])).to.equal(false);
    expect(isArrayOfArrays([1, {}, []])).to.equal(false);
  });

  it("returns true for collections of arrays", () => {
    expect(isArrayOfArrays([ [] ])).to.equal(true);
    expect(isArrayOfArrays([ [{}] ])).to.equal(true);
    expect(isArrayOfArrays([ [ [] ] ])).to.equal(true);
    expect(isArrayOfArrays([ [], [] ])).to.equal(true);
  });
});

@@ -1,16 +1,37 @@
 import %7B
+%0A  containsStrings,%0A 
  isArray
@@ -38,17 +38,17 @@
 OfArrays
- 
+%0A
 %7D from %22
@@ -65,16 +65,747 @@
 tion%22;%0A%0A
+describe(%22containsStrings%22, () =%3E %7B%0A  it(%22handles empty argument%22, () =%3E %7B%0A    expect(containsStrings()).to.equal(false);%0A  %7D);%0A%0A  it(%22handles empty array%22, () =%3E %7B%0A    expect(containsStrings(%5B%5D)).to.equal(false);%0A  %7D);%0A%0A  it(%22returns false for collections of non-strings%22, () =%3E %7B%0A    expect(containsStrings(%5B0, 1%5D)).to.equal(false);%0A    expect(containsStrings(%5Bundefined, null, NaN%5D)).to.equal(false);%0A    expect(containsStrings(%5B%7B%7D, %7Ba: 'foo'%7D%5D)).to.equal(false);%0A  %7D);%0A%0A  it(%22returns false for collections with strings%22, () =%3E %7B%0A    expect(containsStrings(%5B'hello'%5D)).to.equal(true);%0A    expect(containsStrings(%5B'hello', 'there'%5D)).to.equal(true);%0A    expect(containsStrings(%5B0, 'hello', %7B%7D, null%5D)).to.equal(true);%0A  %7D);%0A%7D);%0A%0A
 describe

Add tests for containsStrings