Lines Matching defs:add
17 add: async (pkg, uri, secret, opts) => {
74 t.test('npm hook add', async t => {
76 await hook.exec(['add', 'semver', 'https://google.com', 'some-secret'])
91 t.test('npm hook add - correct owner hook output', async t => {
93 await hook.exec(['add', '~npm', 'https://google.com', 'some-secret'])
108 t.test('npm hook add - correct scope hook output', async t => {
110 await hook.exec(['add', '@npmcli', 'https://google.com', 'some-secret'])
125 t.test('npm hook add - unicode output', async t => {
133 await hook.exec(['add', 'semver', 'https://google.com', 'some-secret'])
148 t.test('npm hook add - json output', async t => {
156 await hook.exec(['add', '@npmcli', 'https://google.com', 'some-secret'])
180 t.test('npm hook add - parseable output', async t => {
188 await hook.exec(['add', '@npmcli', 'https://google.com', 'some-secret'])
213 t.test('npm hook add - silent output', async t => {
219 await hook.exec(['add', '@npmcli', 'https://google.com', 'some-secret'])