Skip to content

Commit 7c2cfb7

Browse files
committed
revert this and check
1 parent 6c9375d commit 7c2cfb7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/e2e/integrations.test.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,10 @@ describe('Integration operations (E2E)', () => {
5454
// If we get here, the test should fail
5555
fail('Expected an error but none was thrown');
5656
} catch (error) {
57-
// Expect a Base44Error
57+
// Expect a Base44Error with appropriate status
5858
expect(error).toBeInstanceOf(Base44Error);
59-
// Status may be undefined for network errors, or >= 400 for HTTP errors
60-
if (error.status !== undefined) {
61-
expect(error.status).toBeGreaterThanOrEqual(400);
62-
}
63-
// At minimum, we expect the error to be thrown
64-
expect(error.message).toBeDefined();
59+
// Typically a 404 for not found, but may vary
60+
expect(error.status).toBeGreaterThanOrEqual(400);
6561
}
6662
});
6763
});

0 commit comments

Comments
 (0)