Adding more UT.
This commit is contained in:
Родитель
5fe2085e0e
Коммит
0926b8175a
|
@ -82,4 +82,16 @@ suite('connectionstringparser-tests', function () {
|
|||
|
||||
done();
|
||||
});
|
||||
|
||||
test('connectionStringWithSpecialCharacters', function (done) {
|
||||
var parsedConnectionString = ConnectionStringParser.parse('key1=qwdwdqdw=@#!@;key2=value2');
|
||||
assert.equal(parsedConnectionString['key1'], 'qwdwdqdw=@#!@');
|
||||
assert.equal(parsedConnectionString['key2'], 'value2');
|
||||
|
||||
var parsedConnectionString = ConnectionStringParser.parse('key1="qwd;wdqdw=@#!@";key2=value2');
|
||||
assert.equal(parsedConnectionString['key1'], 'qwd;wdqdw=@#!@');
|
||||
assert.equal(parsedConnectionString['key2'], 'value2');
|
||||
|
||||
done();
|
||||
});
|
||||
});
|
Загрузка…
Ссылка в новой задаче