Skip to content

Commit 582f296

Browse files
fix test
1 parent 0ccafc7 commit 582f296

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/getData.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ test.describe("oc-client : getData", () => {
376376

377377
// Resolve with captured data
378378
resolve({
379-
requestData: requestData,
379+
requestData,
380380
});
381381
},
382382
);

tests/renderByHref.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ test.describe("oc-client : renderByHref", () => {
102102
});
103103

104104
// Verify the fetch request
105-
expect(fetchResult[0].method).toEqual("GET");
105+
expect(fetchResult[0].method).toEqual(undefined /* GET */);
106106
expect(fetchResult[0].headers["Accept"]).toEqual(
107107
"application/vnd.oc.unrendered+json",
108108
);

0 commit comments

Comments
 (0)