@christian-bromann/webdriverio
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
14 lines (11 loc) • 413 B
JavaScript
import { ErrorHandler } from '../../../index'
describe('ErrorHandler', () => {
it('should accessible through module object', () => {
expect(ErrorHandler).not.to.be.undefined
expect(ErrorHandler).not.to.be.null
})
it('should throw selenium error when passing specific error ID', () => {
const error = new ErrorHandler(17)
error.name.should.be.equal('Error')
})
})