mirror of
https://github.com/status-im/consul.git
synced 2025-01-13 15:26:48 +00:00
516610eb0b
Adds xhr connection managment to http/1.1 installs This includes various things: 1. An object pool to 'acquire', 'release' and 'dispose' of objects, also a 'purge' to completely empty it 2. A `Request` data object, mainly for reasoning about the object better 3. A pseudo http 'client' which doens't actually control the request itself but does help to manage the connections An initializer is used to detect the script element of the consul-ui sourcecode which we use later to sniff the protocol that we are most likely using for API access
13 lines
341 B
JavaScript
13 lines
341 B
JavaScript
import { moduleFor, test } from 'ember-qunit';
|
|
|
|
moduleFor('service:client/http', 'Unit | Service | client/http', {
|
|
// Specify the other units that are required for this test.
|
|
needs: ['service:dom'],
|
|
});
|
|
|
|
// Replace this with your real tests.
|
|
test('it exists', function(assert) {
|
|
let service = this.subject();
|
|
assert.ok(service);
|
|
});
|