MCPcopy
hub / github.com/vuejs/core / fn

Function fn

packages/compiler-core/__tests__/utils.spec.ts:50–50  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

48describe('isMemberExpression', () => {
49 function commonAssertions(raw: (exp: ExpressionNode) => boolean) {
50 const fn = (str: string) => raw(createSimpleExpression(str))
51 // should work
52 expect(fn('obj.foo')).toBe(true)
53 expect(fn('obj[foo]')).toBe(true)

Callers 3

commonAssertionsFunction · 0.70
utils.spec.tsFile · 0.70

Calls 1

createSimpleExpressionFunction · 0.90

Tested by

no test coverage detected