Sha256: 9e3070c86df3fef5b285df0353f05c47ce1d645655f3b1af17c6b249c8d82263

Contents?: true

Size: 540 Bytes

Versions: 21

Compression:

Stored size: 540 Bytes

Contents


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('<div></div>')
  })


})


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')
  })
})

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
learn_create-0.0.22 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.20 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.19 lib/templates/javascript_lab_template/test/indexTest.js
learn_duplicate-0.0.15 lib/templates/javascript_lab_template/test/indexTest.js
learn_duplicate-0.0.14 lib/templates/javascript_lab_template/test/indexTest.js
learn_duplicate-0.0.13 lib/templates/javascript_lab_template/test/indexTest.js
learn_duplicate-0.0.12 lib/templates/javascript_lab_template/test/indexTest.js
learn_duplicate-0.0.8 lib/templates/javascript_lab_template/test/indexTest.js
learn_duplicate-0.0.5 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.18 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.17 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.15 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.14 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.13 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.11 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.10 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.9 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.8 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.7 lib/templates/javascript_lab_template/test/indexTest.js
learn_create-0.0.6 lib/templates/javascript_lab_template/test/indexTest.js