diff --git a/lib/commands/install.js b/lib/commands/install.js index a246dae7..81171eb1 100644 --- a/lib/commands/install.js +++ b/lib/commands/install.js @@ -9,7 +9,7 @@ function install(endpoints, options) { options = options || {}; - // Sanitize endpoints + // If endpoints are an empty array, null them if (endpoints && !endpoints.length) { endpoints = null; } diff --git a/test/core/resolvers/gitResolver.js b/test/core/resolvers/gitResolver.js index 4f7d5b2b..396bf32b 100644 --- a/test/core/resolvers/gitResolver.js +++ b/test/core/resolvers/gitResolver.js @@ -843,7 +843,7 @@ describe('GitResolver', function () { }, null, function (notification) { expect(notification).to.be.an('object'); - if (notification.type === 'warn' && /\(0\.0\.0\).*different.*\(0\.0\.1\)/.test(notification.data)) { + if (notification.level === 'warn' && /\(0\.0\.0\).*different.*\(0\.0\.1\)/.test(notification.data)) { notified = true; } }) diff --git a/test/core/resolvers/resolver.js b/test/core/resolvers/resolver.js index 209ee139..ead48552 100644 --- a/test/core/resolvers/resolver.js +++ b/test/core/resolvers/resolver.js @@ -555,7 +555,7 @@ describe('Resolver', function () { next(); }, null, function (notification) { expect(notification).to.be.an('object'); - if (notification.type === 'warn' && /deprecated/i.test(notification.data)) { + if (notification.level === 'warn' && /deprecated/i.test(notification.data)) { notified = true; } return notification;