Skip to content

Commit 3980e94

Browse files
Merge pull request #225 from contentstack/fix/sanity-fix-lp-api-test-134
test: fix test case to parse error object instead of just string message
2 parents 86caaac + b21df6c commit 3980e94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/api/live-preview.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ describe("Live preview query Entry API tests", () => {
131131
expect(result.updated_by).toBeDefined();
132132
} catch (error: any) {
133133
expect(error).toBeDefined();
134-
const errorData = JSON.parse(error.message);
134+
const errorData = JSON.parse(error);
135135
expect(errorData.status).toEqual(403);
136136
}
137137
});

0 commit comments

Comments
 (0)