consul/ui-v2/tests/unit/utils/dom/event-source/index-test.js

29 lines
792 B
JavaScript
Raw Normal View History

import {
source,
proxy,
cache,
resolve,
CallableEventSource,
ReopenableEventSource,
BlockingEventSource,
StorageEventSource,
} from 'consul-ui/utils/dom/event-source/index';
import { module, test } from 'qunit';
module('Unit | Utility | dom/event source/index');
// Replace this with your real tests.
test('it works', function(assert) {
// All The EventSource
assert.ok(typeof CallableEventSource === 'function');
assert.ok(typeof ReopenableEventSource === 'function');
assert.ok(typeof BlockingEventSource === 'function');
assert.ok(typeof StorageEventSource === 'function');
// Utils
assert.ok(typeof source === 'function');
assert.ok(typeof proxy === 'function');
assert.ok(typeof cache === 'function');
assert.ok(typeof resolve === 'function');
});