mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
AAE-30882 - Improved some unit tests
This commit is contained in:
@@ -44,6 +44,13 @@ export class BaseMock {
|
||||
};
|
||||
}
|
||||
|
||||
getBaseHeaders(): Record<string, string> {
|
||||
return {
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Access-Control-Allow-Credentials': 'true'
|
||||
};
|
||||
}
|
||||
|
||||
protected createNockWithCors(): nock.Scope {
|
||||
this.addCorsSupport();
|
||||
return nock(this.host, { encodedQueryParams: true }).defaultReplyHeaders(this.getDefaultHeaders());
|
||||
|
Reference in New Issue
Block a user