Skip to content

Commit 07f3347

Browse files
committed
Fixing tests
1 parent fff7cb6 commit 07f3347

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/Configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { JWTAuth } from './JWTAuth';
2-
import { Authentication } from 'Authentication';
2+
import { Authentication } from './Authentication';
33

44
export enum ApiVersion {
55
v3 = 'v3.0',

src/JWTAuth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Configuration } from 'Configuration';
2-
import { Authentication } from 'Authentication';
1+
import { Configuration } from './Configuration';
2+
import { Authentication } from './Authentication';
33
import { HttpClient, HttpOptions } from './httpClient';
44

55
export class JWTAuth implements Authentication {

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// This file is autogenerated - Please do not edit
2727
// ===============================================
2828

29-
import { Configuration } from 'Configuration';
29+
import { Configuration } from './Configuration';
3030
import { HttpClient, HttpOptions, HttpResponse, HttpResult } from './httpClient';
3131

3232
import {

test/httpClient.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ describe('httpClient tests', () => {
1919
async () => {
2020
await client.requestAsync({
2121
uri: 'https://www.aspose.cloud/404',
22+
headers: { 'User-Agent': 'Googlebot/2.1 (+http://www.google.com/bot.html)' },
2223
});
2324
},
2425
(rejected: any) => {
@@ -40,7 +41,7 @@ describe('httpClient tests', () => {
4041
},
4142
(rejected: any) => {
4243
assert.ok(rejected.error);
43-
assert.equal(rejected.error.code, 'ENOTFOUND');
44+
assert.ok(rejected.error.code);
4445
assert.equal(rejected.response, null);
4546
return true;
4647
}

0 commit comments

Comments
 (0)