Skip to content

Commit d4ac94e

Browse files
committed
docs: improve sample code consistency and fix API references
- Change Next Steps links from "Client API/Expect API" to "Client Guide/Expect Guide" - Replace URL object notation with connection string format in PostgreSQL examples - Fix toHaveHeadersProperty with RegExp to toHaveHeadersPropertyContaining with string - Change client initialization from `const` to `await using` for proper resource cleanup
1 parent e410e01 commit d4ac94e

5 files changed

Lines changed: 1506 additions & 66 deletions

File tree

data/index/user_api.probitas.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ export default scenario("User API Integration Test", {
1010
}))
1111
.resource("db", () =>
1212
client.sql.postgres.createPostgresClient({
13-
url: {
14-
host: "localhost",
15-
port: 5432,
16-
database: "app",
17-
username: "testuser",
18-
password: "testpassword",
19-
},
13+
url: "postgres://testuser:testpassword@localhost:5432/app",
2014
}))
2115
.resource("http", () =>
2216
client.http.createHttpClient({

0 commit comments

Comments
 (0)