How to use the @aurelia/validation.parsePropertyName function in @aurelia/validation

To help you get started, we’ve selected a few @aurelia/validation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / aurelia / packages / __tests__ / validation / rule.spec.ts View on Github external
it(`parses ${property.toString()} to ${expected}`, function () {
      const { parser } = setup();
      assert.deepEqual(parsePropertyName(property, parser), [expected, parser.parse(expected, BindingType.None)]);
    }));
github aurelia / aurelia / packages / __tests__ / validation / rule.spec.ts View on Github external
() => {
          parsePropertyName(property as any, parser);
        },
        /Unable to parse accessor function/);