JSFiddle - React, Tailwind, and code Playground
by Yomi Eluwande
JavaScript
const Nightmare = require('nightmare')
const assert = require('assert')
describe('Load a Page', function() {
this.timeout('90s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare()
})
describe('/ (Home Page)', () => {
it('should load without error', done => {
// your actual testing urls will likely be `http://localhost:port/path`
nightmare.goto('https://logrocket.com')
.end()
.then(function (result) { done() })
.catch(done)
})
})
})