test(core): update test expectation to account for IE11 anonymous function name (#40342)

The "monitoring" workflow has been failing since #40127 was merged,
due to a Saucelabs test failure in Internet Explorer 11. The issue is
with the test's expectation which does not account for Ivy instruction
invocations to use "anonymous" instead of the instruction's function
name. This commit changes the test expectation to also accept
"anonymous", which was already the case for similar expectations.

PR Close #40342
This commit is contained in:
JoostK 2021-01-07 21:03:57 +01:00 committed by atscott
parent 15b15be259
commit da6c739bb6
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ describe('component declaration jit compilation', () => {
expectComponentDef(def, { expectComponentDef(def, {
template: functionContaining([ template: functionContaining([
/element[^(]*\(0,'div'\)/, // NOTE: the `anonymous` match is to support IE11, as functions don't have a name there.
/(?:element|anonymous)[^(]*\(0,'div'\)/,
]), ]),
}); });
}); });