JSFiddle - React, Tailwind, and code Playground
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 => {
nightmare.goto('https://developer.pagemajik.online')
.end()
.then(function(result) {
done()
})
.catch(done)
})
})
})