Use new api for disabling a remote method.
This commit is contained in:
parent
1fa6754c23
commit
b5ad2e06c8
|
@ -342,7 +342,7 @@ describe('explorer', function() {
|
|||
expect(paths).to.contain('/products/findOne');
|
||||
|
||||
var Product = app.models.Product;
|
||||
Product.disableRemoteMethod('findOne', true);
|
||||
Product.disableRemoteMethodByName('findOne');
|
||||
|
||||
// Request swagger.json again
|
||||
request(app)
|
||||
|
|
Loading…
Reference in New Issue