mirror of https://github.com/status-im/consul.git
29 lines
792 B
JavaScript
29 lines
792 B
JavaScript
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');
|
|
});
|