How to use the @lykmapipo/mongoose-common.Schema.Types function in @lykmapipo/mongoose-common

To help you get started, we’ve selected a few @lykmapipo/mongoose-common 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 lykmapipo / mongoose-rest-actions / test / unit / index.spec.js View on Github external
it('should be able to get path', () => {
    const name = User.path('name');
    expect(name).to.exist;
    expect(name).to.be.instanceof(Schema.Types.String);
  });