Skip to content

Commit

Permalink
Merge 22c223d into b1cc9c3
Browse files Browse the repository at this point in the history
  • Loading branch information
gaggle committed Aug 4, 2016
2 parents b1cc9c3 + 22c223d commit a64e001
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ const expect = require("chai").expect
const flatten = require("../")

describe("flatten", function () {
it("should throw if called with null", function () {
expect(() => flatten(null)).to.throw()
})

it("should throw if called with undefined", function () {
expect(() => flatten(undefined)).to.throw()
})

it("should return empty if called with empty", function () {
expect(flatten([])).to.eql([])
})
Expand Down

0 comments on commit a64e001

Please sign in to comment.