Skip to content

Commit a788a8f

Browse files
authored
SDK-3368: Add missing feature flag to tests (#2528)
1 parent fe2b35b commit a788a8f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

e2e/node/resource.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@ describe("Authenticated end-to-end", () => {
153153
expect(error.problemDetails.type).toBe(DEFAULT_TYPE);
154154
expect(error.problemDetails.title).toBe("Not Found");
155155
expect(error.problemDetails.status).toBe(404);
156-
expect(error.problemDetails.detail).toBe("Resource not found");
157-
expect(error.problemDetails.instance).toBeDefined();
156+
if (env?.features?.PROBLEM_DETAILS === "true") {
157+
expect(error.problemDetails.detail).toBe("Resource not found");
158+
expect(error.problemDetails.instance).toBeDefined();
159+
}
158160
});
159161

160162
it("can create, delete, and differentiate between RDF and non-RDF Resources using a Blob from the node Buffer package", async () => {

0 commit comments

Comments
 (0)