mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Working e2e tests
This commit is contained in:
parent
9662125bda
commit
ff4544c082
@ -15,8 +15,6 @@ const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Pr
|
||||
[key]: String(value),
|
||||
}), {} as Record<string, string>);
|
||||
|
||||
const headers =
|
||||
|
||||
if (isStringWithValue(token)) {
|
||||
headers['Authorization'] = `Bearer ${token}`;
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Pr
|
||||
const password = await resolve(options, config.PASSWORD);
|
||||
const additionalHeaders = await resolve(options, config.HEADERS);
|
||||
|
||||
const defaultHeaders = Object.entries({
|
||||
const headers = Object.entries({
|
||||
Accept: 'application/json',
|
||||
...additionalHeaders,
|
||||
...options.headers,
|
||||
|
||||
@ -4,7 +4,7 @@ const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Pr
|
||||
const password = await resolve(options, config.PASSWORD);
|
||||
const additionalHeaders = await resolve(options, config.HEADERS);
|
||||
|
||||
const defaultHeaders = Object.entries({
|
||||
const headers = Object.entries({
|
||||
Accept: 'application/json',
|
||||
...additionalHeaders,
|
||||
...options.headers,
|
||||
|
||||
@ -376,8 +376,6 @@ const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Pr
|
||||
[key]: String(value),
|
||||
}), {} as Record<string, string>);
|
||||
|
||||
const headers =
|
||||
|
||||
if (isStringWithValue(token)) {
|
||||
headers['Authorization'] = \`Bearer \${token}\`;
|
||||
}
|
||||
@ -3279,8 +3277,6 @@ const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Pr
|
||||
[key]: String(value),
|
||||
}), {} as Record<string, string>);
|
||||
|
||||
const headers =
|
||||
|
||||
if (isStringWithValue(token)) {
|
||||
headers['Authorization'] = \`Bearer \${token}\`;
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@ describe('v3.angular', () => {
|
||||
await generateClient('v3/angular/app/src', 'v3', 'angular');
|
||||
copyAsset('main-angular.ts', 'v3/angular/app/src/main.ts');
|
||||
buildAngularProject('v3/angular', 'app', 'dist');
|
||||
await server.start('v3/angular/dist');
|
||||
await server.start('v3/angular/app/dist');
|
||||
await browser.start();
|
||||
}, 30000);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user