From 27ae0604c6b7ec0998d163402cc4e9a654cb38f2 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 4 Nov 2020 20:42:10 +0100 Subject: [PATCH] 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 --- .../compliance/r3_compiler_compliance_spec.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/compiler-cli/test/compliance/r3_compiler_compliance_spec.ts b/packages/compiler-cli/test/compliance/r3_compiler_compliance_spec.ts index 6241df64e3..b83844c31a 100644 --- a/packages/compiler-cli/test/compliance/r3_compiler_compliance_spec.ts +++ b/packages/compiler-cli/test/compliance/r3_compiler_compliance_spec.ts @@ -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});