axe-core
Version:
Accessibility engine for automated Web UI testing
30 lines (23 loc) • 684 B
JavaScript
/*global CheckResult */
describe('CheckResult', function () {
'use strict';
it('should be a function', function () {
assert.isFunction(CheckResult);
});
it('should have an id', function () {
var result = new CheckResult({id: 'monkeys'});
assert.equal(result.id, 'monkeys');
});
it('should set `data` to `null`', function () {
var result = new CheckResult({});
assert.isNull(result.data);
});
it('should set `relatedNodes` to `[]`', function () {
var result = new CheckResult({});
assert.deepEqual(result.relatedNodes, []);
});
it('should set `result` to `null`', function () {
var result = new CheckResult({});
assert.isNull(result.result);
});
});