let niffy

before(function () {
  niffy = new Niffy(
    'https://google.com',
    'https://google.co.jp',
    { show: true }
  )
})

it('Google Homepage', function* () {
  yield niffy.test('/')
})

it('Google Services', function* () {
  yield niffy.test('/services')
})

after(function* () {
  yield niffy.end()
})

How do I use it?

Niffy can be installed via npm:

npm install niffy

You can find API docs for Niffy and Nightmare on Github.