test(compiler-cli): resolve test failure (#39568)
Narrows down an assertion in one of our tests so it's less prone to failure due to extra commas. PR Close #39568
This commit is contained in:
parent
9262702ef7
commit
27ae0604c6
|
@ -3340,16 +3340,13 @@ describe('compiler compliance', () => {
|
|||
|
||||
// The setClassMetadata call should look like this.
|
||||
const setClassMetadata = `
|
||||
…
|
||||
(function() {
|
||||
i0.ɵsetClassMetadata(Comp, [{
|
||||
type: Component,
|
||||
args: [{
|
||||
template: '',
|
||||
providers: [{ provide: token, useExisting: Comp }],
|
||||
}]
|
||||
}], null, null);
|
||||
})();
|
||||
…
|
||||
(function() {
|
||||
i0.ɵsetClassMetadata(Comp, [{
|
||||
type: Component,
|
||||
args: [{
|
||||
template: '',
|
||||
providers: [{ provide: token, useExisting: Comp }]
|
||||
`;
|
||||
|
||||
const result = compile(files, angularFiles, {target: ts.ScriptTarget.ES5});
|
||||
|
|
Loading…
Reference in New Issue