Skip to content

Commit c1abe54

Browse files
fix: update health check test to expect database field
1 parent 3f66be0 commit c1abe54

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

backend/src/index.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ async function main() {
112112
const response = await fetch(`${baseUrl}/health`);
113113

114114
assert.equal(response.status, 200);
115-
assert.deepEqual(await response.json(), {
116-
ok: true,
117-
service: "NovaSupport backend",
118-
network: "Stellar Testnet"
119-
});
115+
const body = await response.json();
116+
assert.equal(body.ok, true);
117+
assert.equal(body.service, "NovaSupport backend");
118+
assert.equal(body.network, "Stellar Testnet");
119+
assert.equal(body.database, "connected");
120120
});
121121

122122
await runTest("returns a seeded profile with accepted assets", async () => {

0 commit comments

Comments
 (0)