describe("index.html", () => { it("includes 'hello'", () => { expect(document.querySelector('body').innerHTML).to.include('hello') }) it("includes div", () => { expect(document.querySelector('body').innerHTML, "no empty div element found within body").to.include('
') }) }) describe("index.js", () => { it("exists", () => { expect(testVar).to.exist expect(testVar).to.deep.equal({}) //without .deep, {} does not equal {} expect(testFunc).to.exist expect(testFunc()).to.equal('hi') }) })