We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25a86a commit a151822Copy full SHA for a151822
test/request.spec.ts
@@ -24,4 +24,16 @@ describe('Request tests', () => {
24
25
await expect(getData(client, url)).rejects.toThrowError(errorMessage);
26
});
27
+
28
+ it('should throw error when host is required for live preview', async () => {
29
+ const client = httpClient({});
30
+ const url = '/your-api-endpoint';
31
+ client.stackConfig = {
32
+ live_preview: {
33
+ enable: true,
34
+ preview_token: 'someToken',
35
+ },
36
+ };
37
+ await expect(getData(client, url, {})).rejects.toThrowError('Host is required for live preview');
38
+ });
39
0 commit comments