0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

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
This commit is contained in:
Peter Cools 2018-07-29 19:11:43 +02:00
parent e9007c3d3e
commit 7c3a617d79

View file

@ -28,6 +28,7 @@ describe('<Header /> component shallow', () => {
username: '',
password: '',
logo: '',
scope: '',
loginError: null
};
const HeaderWrapper = wrapper.find(Header).dive();
@ -137,4 +138,4 @@ describe('<Header /> snapshot test', () => {
);
expect(wrapper.html()).toMatchSnapshot();
});
});
});