Skip to content

Commit

Permalink
thymikee#1815 remove __ngContext__ from snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jepetko committed Nov 2, 2022
1 parent 4a2bc4f commit 7ab05b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

exports[`snapshot should work 1`] = `
<foo
__ngContext__="0"
condition1={[Function Boolean]}
condition2="false"
value1={[Function String]}
Expand Down
2 changes: 1 addition & 1 deletion src/serializers/ng-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const print = (fixture: unknown, print: Printer, indent: Indent, opts: PluginOpt
.map((node: VEDebugNode) => Array.from(node.renderElement.childNodes).map(print).join(''))
.join(opts.edgeSpacing);
}
const attributes = Object.keys(componentInstance);
const attributes = Object.keys(componentInstance).filter(key => key !== '__ngContext__');
if (attributes.length) {
componentAttrs += attributes
.sort()
Expand Down

0 comments on commit 7ab05b2

Please sign in to comment.