Skip to content

Commit 1d8a4c2

Browse files
committed
Formatting.
1 parent a25e798 commit 1d8a4c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/10-client-api.spec.common.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ describe('http-client API', () => {
172172
should.exist(err.requestUrl);
173173
err.requestUrl.should.equal(url);
174174
});
175+
175176
it('successfully makes request with default json headers', async () => {
176177
let err;
177178
let response;
@@ -190,6 +191,7 @@ describe('http-client API', () => {
190191
const {accept} = response.data.headers;
191192
accept.should.equal('application/ld+json, application/json');
192193
});
194+
193195
it('successfully makes request with header that is overridden', async () => {
194196
let err;
195197
let response;
@@ -212,6 +214,7 @@ describe('http-client API', () => {
212214
const {accept} = response.data.headers;
213215
accept.should.equal('text/html');
214216
});
217+
215218
it('can use create() to provide default headers', async () => {
216219
let err;
217220
let response;
@@ -234,6 +237,7 @@ describe('http-client API', () => {
234237
const {accept} = response.data.headers;
235238
accept.should.equal('text/html');
236239
});
240+
237241
it('handles a successful get with JSON data', async () => {
238242
let err;
239243
let response;
@@ -252,6 +256,7 @@ describe('http-client API', () => {
252256
should.exist(ct);
253257
ct.includes('application/json').should.be.true;
254258
});
259+
255260
it('handles a successful get with HTML data', async () => {
256261
let err;
257262
let response;
@@ -271,6 +276,7 @@ describe('http-client API', () => {
271276
should.exist(ct);
272277
ct.includes('text/html').should.be.true;
273278
});
279+
274280
it('handles a successful direct get', async () => {
275281
let err;
276282
let response;
@@ -286,6 +292,7 @@ describe('http-client API', () => {
286292
should.exist(response.data);
287293
response.status.should.equal(200);
288294
});
295+
289296
it('handles a get not found error with JSON data', async () => {
290297
let err;
291298
let response;
@@ -309,6 +316,7 @@ describe('http-client API', () => {
309316
err.data.code.should.equal(404);
310317
err.data.description.should.equal('Not Found');
311318
});
319+
312320
it('handles a direct get not found error with JSON data', async () => {
313321
let err;
314322
let response;
@@ -332,6 +340,7 @@ describe('http-client API', () => {
332340
err.data.code.should.equal(404);
333341
err.data.description.should.equal('Not Found');
334342
});
343+
335344
if(isNode) {
336345
describe('Nodejs execution context', () => {
337346
it('handles a network error', async () => {

0 commit comments

Comments
 (0)