This is an automated email from the ASF dual-hosted git repository.
glynnbird pushed a commit to branch fix-basicauth-percent-encoding
in repository https://gitbox.apache.org/repos/asf/couchdb-nano.git
The following commit(s) were added to refs/heads/fix-basicauth-percent-encoding
by this push:
new f30b534 tests working
f30b534 is described below
commit f30b5349a24996586aa9bb37a7c55b71fdba885c
Author: Glynn Bird <[email protected]>
AuthorDate: Fri Feb 6 10:41:40 2026 +0000
tests working
---
test/nano.basicauth.test.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/test/nano.basicauth.test.js b/test/nano.basicauth.test.js
index 30a3b9d..1031f35 100644
--- a/test/nano.basicauth.test.js
+++ b/test/nano.basicauth.test.js
@@ -12,10 +12,11 @@
const test = require('node:test')
const assert = require('node:assert/strict')
-const COUCH_URL="http://admin[:admin]@localhost:5984"
+const COUCH_URL="http://admin[:admin]@127.0.0.1:5984"
const { mockAgent, mockPool, JSON_HEADERS } = require('./mock.js')
const Nano = require('..')
-const nano = Nano(COUCH_URL)
+const nano = Nano({ url: COUCH_URL })
+const pkg = require('../package.json')
test('should handle special characters in username & password', async () => {
// mocks
@@ -24,7 +25,8 @@ test('should handle special characters in username &
password', async () => {
.intercept({
path: '/_all_dbs',
headers: {
- 'Authorization': auth
+ 'authorization': auth,
+ 'content-type': 'application/json'
}
})
.reply(200, ['a'], JSON_HEADERS)