Skip to content

Commit 90d018e

Browse files
committed
revert the test
1 parent 73fade6 commit 90d018e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

packages/client/tests/integration-tests/tracker.integration.test.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,12 @@ test('Track Product View without id', async() => {
200200
});
201201

202202
test('Track Product View on a Dataset that does not exist', async() => {
203-
const tracker = new Tracker("00000000-0000-0000-0000-000000000000", API_KEY!, { serverUrl: SERVER_URL });
203+
await expect(async() => {
204+
const tracker = new Tracker("00000000-0000-0000-0000-000000000000", API_KEY!, { serverUrl: SERVER_URL });
204205

205-
try {
206-
await tracker.trackProductView({
206+
return await tracker.trackProductView({
207207
productId: null,
208208
user: UserFactory.anonymous(),
209-
} as any);
210-
} catch (e) {
211-
expect(e).toBeDefined();
212-
expect(e instanceof ProblemDetailsError).toBe(true);
213-
expect((e as ProblemDetailsError).message).toContain('404');
214-
expect((e as ProblemDetailsError).message).toContain('Error when calling the Relewise API.');
215-
}
209+
} as any)
210+
}).rejects.toThrow();
216211
});

0 commit comments

Comments
 (0)