Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Aug 12, 2020
1 parent e12d280 commit bce39ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ and converts it into an object that contains only what's specified:
}
```

Plus it adds some [Virtual Properties], to simplify access to the first host.
Plus it adds some [Virtual Properties], to simplify access to the first host details.

And it can generate a valid connection string from an object (see [connection-string-demo]).

Expand Down Expand Up @@ -177,7 +177,7 @@ For a good example, see [connection-string-demo].
### Virtual Properties

Type `ConnectionString` supports non-enumerable read-only properties `host`, `hostname`, `port` and `type`,
for simpler use when only the first host is needed:
for simpler use when you need only the first host details:

* `host = hosts?.[0].toString()`
* `hostname = hosts?.[0].name`
Expand Down
2 changes: 0 additions & 2 deletions test/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,7 @@ describe('inspection', () => {
const cs = parse('local:123');
const out1 = inspect(cs);
const out2 = removeColors(out1);

it('must include virtual properties', () => {

expect(out2).to.contain(`${EOL}Virtual Properties:`);
expect(out2).to.contain(`host: 'local:123'`);
expect(out2).to.contain(`hostname: 'local'`);
Expand Down

0 comments on commit bce39ee

Please sign in to comment.