Skip to content

Commit ce370dd

Browse files
fix: add error handling for live preview query entry API tests to check for 403 status
1 parent d87b850 commit ce370dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/api/live-preview.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ describe('Live preview query Entry API tests', () => {
128128
expect(result.updated_by).toBeDefined();
129129
} catch (error: any) {
130130
expect(error).toBeDefined();
131+
const errorData = JSON.parse(error.message);
132+
expect(errorData.status).toEqual(403);
131133
}
132134
});
133135

0 commit comments

Comments
 (0)