From 7c3a617d79da07c5a01ce488d50d7a4bcf832190 Mon Sep 17 00:00:00 2001 From: Peter Cools Date: Sun, 29 Jul 2018 19:11:43 +0200 Subject: [PATCH] feat: adds option to set scope in webui instructions header If you're using this registry for a specific module scope, specify that scope to set it in the webui instructions header e.g. npm set @coolsp:registry http://localhost:4873. Added as webui.scope option in .yaml. > Note: in .yaml, escape @ with \\@. See also feature request #593. Update unit test for added scope --- test/unit/webui/components/header.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/webui/components/header.spec.js b/test/unit/webui/components/header.spec.js index 161ba70af..bcb22e8a1 100644 --- a/test/unit/webui/components/header.spec.js +++ b/test/unit/webui/components/header.spec.js @@ -28,6 +28,7 @@ describe('
component shallow', () => { username: '', password: '', logo: '', + scope: '', loginError: null }; const HeaderWrapper = wrapper.find(Header).dive(); @@ -137,4 +138,4 @@ describe('
snapshot test', () => { ); expect(wrapper.html()).toMatchSnapshot(); }); -}); \ No newline at end of file +});