14 lines
493 B
JavaScript
14 lines
493 B
JavaScript
import domEventTargetRsvp from 'consul-ui/utils/dom/event-target/rsvp';
|
|
import { module, test } from 'qunit';
|
|
|
|
module('Unit | Utility | dom/event-target/rsvp');
|
|
|
|
// Replace this with your real tests.
|
|
test('it has EventTarget methods', function(assert) {
|
|
const result = domEventTargetRsvp;
|
|
assert.equal(typeof result, 'function');
|
|
['addEventListener', 'removeEventListener', 'dispatchEvent'].forEach(function(item) {
|
|
assert.equal(typeof result.prototype[item], 'function');
|
|
});
|
|
});
|