it('has a title', async () => { // Only works with PhantomJS, at present ghost.setDriverOpts({ parameters: { 'ignore-ssl-errors': 'yes' }}) let result = await ghost.open(URL) assert.notEqual(result, 'fail') let pageTitle = await ghost.pageTitle() assert.ok(pageTitle.match(/Basic/)) ghost.exit() })
it('does not have a signed cert', async () => { ghost.setDriverOpts({}) let result = await ghost.open(URL) assert.equal(result, 'fail') ghost.exit() })