Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.12 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.12 KB

load-web-page-jsdom-jasmine

logo

Minimal example of loading a web page into jsdom and testing with Jasmine

Build

Instructions

Execute spec-runner.sh.command or enter the terminal commands:

$ git clone https://github.com/dna-engine/load-web-page-jsdom-jasmine
$ cd load-web-page-jsdom-jasmine
$ npm install
$ npm test  #runs "jasmine spec.js"

For development testing, set the url variable in spec.js to your local web server, such as: http:https://localhost:8080

screenshot

Comparison

For a Puppeteer/Mocha version, check out:
load-web-page-puppeteer-mocha


dna-engine.org | MIT License