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:
Kristiyan Kostadinov 2020-11-04 20:42:10 +01:00 committed by Joey Perrott
parent 9262702ef7
commit 27ae0604c6
1 changed files with 7 additions and 10 deletions

View File

@ -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});