Skip to content

Commit 955db3b

Browse files
committed
Add test
1 parent e5af81f commit 955db3b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/unit/connection/test-connection_config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ assert.throws(
1111
new ConnectionConfig({
1212
ssl: true
1313
}),
14-
err => err instanceof TypeError && err.message === expectedMessage,
14+
(err) => err instanceof TypeError && err.message === expectedMessage,
1515
'Error, the constructor accepts a boolean without throwing the right exception'
1616
);
1717

@@ -42,3 +42,10 @@ assert.doesNotThrow(() => {
4242
flags: ['-FOUND_ROWS']
4343
});
4444
}, '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

Comments
 (0)