integration support for harness p3-comments

Signed-off-by: Calvin Lee <cjlee@ualberta.ca>
This commit is contained in:
Calvin Lee
2024-04-23 00:23:33 -06:00
parent d422716946
commit 6a0e918dc6
2 changed files with 2 additions and 2 deletions
@@ -60,7 +60,7 @@ const createReader = (config: JsonObject): UrlReaderPredicateTuple[] => {
describe('HarnessUrlReader', () => {
const worker = setupServer();
setupRequestMockHandlers(worker);
beforeAll(() => worker.listen({ onUnhandledRequest: 'bypass' }));
afterAll(() => {
jest.clearAllMocks();
});
+1 -1
View File
@@ -122,7 +122,7 @@ export function getHarnessRequestOptions(config: HarnessIntegrationConfig): {
if (apiKey) {
headers['x-api-key'] = apiKey;
} else {
} else if (token) {
headers.Authorization = `Bearer ${token}`;
}