From b5ad2e06c801b8b3954c66cc5be574e500420507 Mon Sep 17 00:00:00 2001 From: Richard Pringle Date: Thu, 22 Sep 2016 13:36:48 -0400 Subject: [PATCH] Use new api for disabling a remote method. --- test/explorer.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/explorer.test.js b/test/explorer.test.js index 948b811..c371a7b 100644 --- a/test/explorer.test.js +++ b/test/explorer.test.js @@ -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)