diff --git a/README.md b/README.md index 08c377e..30bb6c8 100644 --- a/README.md +++ b/README.md @@ -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]). @@ -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` diff --git a/test/main.spec.ts b/test/main.spec.ts index e8d9834..f1e27cf 100644 --- a/test/main.spec.ts +++ b/test/main.spec.ts @@ -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'`);