Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should be able to get path', () => {
const name = User.path('name');
expect(name).to.exist;
expect(name).to.be.instanceof(Schema.Types.String);
});