Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Sep 1, 2019
1 parent 119c765 commit 077beb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "connection-string",
"version": "3.0.3",
"version": "3.0.4",
"description": "Advanced URL Connection String parser + generator.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
10 changes: 1 addition & 9 deletions test/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,6 @@ describe('setDefaults', () => {
type: 'domain'
}]
});
// TODO: Invalid hosts must be skipped when parsed:
/*
expect(parse('').setDefaults({hosts: [{name: 'a b'}]})).to.eql({
hosts: [{
name: 'my-host',
type: 'domain'
}]
});*/
});
it('must ignore trailing spaces for host names', () => {
expect(parse('one').setDefaults({hosts: [{name: ' one '}]})).to.eql({
Expand Down Expand Up @@ -615,7 +607,7 @@ describe('parseHost', () => {
}).to.throw(error + 123);
});
it('must not decode hosts', () => {
// TODO: should either skip or throw when the host match is partial:
// TODO: should either skip or throw when the host match is partial?
// expect(parseHost('a b')).to.eql(null);
});
it('must allow empty hosts', () => {
Expand Down

0 comments on commit 077beb9

Please sign in to comment.