We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5af81f commit 955db3bCopy full SHA for 955db3b
test/unit/connection/test-connection_config.js
@@ -11,7 +11,7 @@ assert.throws(
11
new ConnectionConfig({
12
ssl: true
13
}),
14
- err => err instanceof TypeError && err.message === expectedMessage,
+ (err) => err instanceof TypeError && err.message === expectedMessage,
15
'Error, the constructor accepts a boolean without throwing the right exception'
16
);
17
@@ -42,3 +42,10 @@ assert.doesNotThrow(() => {
42
flags: ['-FOUND_ROWS']
43
});
44
}, 'Error, the constructor threw an exception due to a flags array');
45
+
46
+assert.strictEqual(
47
+ ConnectionConfig.parseUrl(
48
+ String.raw`fml://test:pass!@$%^&*()\word:@www.example.com/database`
49
+ ).password,
50
+ 'pass!%40$%%5E&*()%5Cword%3A'
51
+);
0 commit comments