mirror of https://github.com/status-im/consul.git
34 lines
957 B
JavaScript
34 lines
957 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import {
|
|
source,
|
|
proxy,
|
|
cache,
|
|
resolve,
|
|
CallableEventSource,
|
|
OpenableEventSource,
|
|
BlockingEventSource,
|
|
StorageEventSource,
|
|
} from 'consul-ui/utils/dom/event-source/index';
|
|
import { module, test } from 'qunit';
|
|
|
|
module('Unit | Utility | dom/event source/index', function () {
|
|
// Replace this with your real tests.
|
|
test('it works', function (assert) {
|
|
// All The EventSource
|
|
assert.strictEqual(typeof CallableEventSource, 'function');
|
|
assert.strictEqual(typeof OpenableEventSource, 'function');
|
|
assert.strictEqual(typeof BlockingEventSource, 'function');
|
|
assert.strictEqual(typeof StorageEventSource, 'function');
|
|
|
|
// Utils
|
|
assert.strictEqual(typeof source, 'function');
|
|
assert.strictEqual(typeof proxy, 'function');
|
|
assert.strictEqual(typeof cache, 'function');
|
|
assert.strictEqual(typeof resolve, 'function');
|
|
});
|
|
});
|