How to use the address.name function in address

To help you get started, we’ve selected a few address 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 tmpfs / async-validate / test / spec / error-fields.js View on Github external
schema.validate(source, function(err, res) {
      expect(res.fields.name.length).to.eql(1);
      expect(res.fields['address.name'].length).to.eql(1);
      done();
    });
  });