Skip to content

Commit

Permalink
fixup! migration guide clean-up per review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Apr 21, 2020
1 parent fdf9fd6 commit 16ed3db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/site/DataSource-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ style.
For example:

```diff
export class DsDataSource extends juggler.DataSource {
static dataSourceName = 'ds';
export class DbDataSource extends juggler.DataSource {
static dataSourceName = 'db';
+ static readonly defaultConfig = config;

constructor(
Expand All @@ -125,6 +125,10 @@ style.
4. Modify the tests importing the default datasource configuration from the JSON
file, get the default configuration via the new static property instead.

This is typically needed by tests for service proxies, which are are working
with a datasource connected to a web service. Datasources connected to a
database usually don't need different configuration for tests.

For example:

```diff
Expand Down

0 comments on commit 16ed3db

Please sign in to comment.