Skip to content

Commit

Permalink
chore: fix NodeJS init templates V2 unit tests for new-style synthesi…
Browse files Browse the repository at this point in the history
…s (backport #14400) (#14450)

This is an automatic backport of pull request #14400 done by [Mergify](https://mergify.io).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.io/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.io/) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/
</details>
  • Loading branch information
mergify[bot] authored Apr 29, 2021
1 parent 94f90bd commit 9f1facb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ test('Empty Stack', () => {
const stack = new %name.PascalCased%.%name.PascalCased%Stack(app, 'MyTestStack');
// THEN
const actual = app.synth().getStackArtifact(stack.artifactId).template;
expect(actual).toEqual({});
expect(actual.Resources || {}).toEqual({});
});
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ test('Empty Stack', () => {
const stack = new %name.PascalCased%.%name.PascalCased%Stack(app, 'MyTestStack');
// THEN
const actual = app.synth().getStackArtifact(stack.artifactId).template;
expect(actual).toEqual({});
expect(actual.Resources ?? {}).toEqual({});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ test('Empty Stack', () => {
new %name.PascalCased%.%name.PascalCased%(stack, 'MyTestConstruct');
// THEN
const actual = app.synth().getStackArtifact(stack.artifactId).template;
expect(actual).toEqual({});
expect(actual.Resources ?? {}).toEqual({});
});

0 comments on commit 9f1facb

Please sign in to comment.