Skip to content

Commit

Permalink
fix: import/require in system test for multiple services (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Nov 19, 2019
1 parent 973af3e commit 5648cda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ limitations under the License.
-#}
{% import "../../../../_license.njk" as license -%}
{{license.license()}}
{%- for service in api.services %}
const {{ api.naming.productName.toKebabCase()}} = require('{{ api.naming.productName.toKebabCase() }}');
{%- endfor %}

function main() {
{%- for service in api.services %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ limitations under the License.
-#}
{% import "../../../../_license.njk" as license -%}
{{license.license()}}
{%- for service in api.services %}
import { {{- service.name.toPascalCase() + 'Client' -}} } from '{{ api.naming.productName.toKebabCase() }}';
{%- endfor %}
import {
{%- set serviceJoiner = joiner(", ") -%}
{%- for service in api.services %}
{{- serviceJoiner() -}}
{{- service.name.toPascalCase() + 'Client' -}}
{%- endfor -%}
} from '{{ api.naming.productName.toKebabCase() }}';

function main() {
{%- for service in api.services %}
Expand Down

0 comments on commit 5648cda

Please sign in to comment.