da36c2a0f9
- Maintain http headers as JSON-API meta for all API requests (#4946) - Add EventSource ready for implementing blocking queries - EventSource project implementation to enable blocking queries for service and node listings (#5267) - Add setting to enable/disable blocking queries (#5352)
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');
|
|
});
|