Lines Matching full:init
7 test('npm init <name>', function (t) {
26 var init = requireInject('../../lib/init', {
27 'init-package-json': initJsonMock,
31 init(['name'], function () {})
37 test('npm init expands scopes', function (t) {
43 var init = requireInject('../../lib/init', {
51 init(['@scope'], function () {})
57 init(['@scope/name'], function () {})
63 test('npm init expands version names', function (t) {
69 var init = requireInject('../../lib/init', {
77 init(['name@1.2.3'], function () {})
83 init(['name@^1.2.3'], function () {})
89 test('npm init expands git names', function (t) {
95 var init = requireInject('../../lib/init', {
103 init(['user/foo'], function () {})
109 init(['git+https://github.com/user/foo'], function () {})
115 test('npm init errors on folder and tarballs', function (t) {
117 var init = require('../../lib/init')
120 init(['../foo/bar/'], function () {})
126 () => init(['../foo/bar/'], function () {}),
131 () => init(['file:foo.tar.gz'], function () {}),
136 () => init(['http://x.com/foo.tgz'], function () {}),
144 test('npm init forwards arguments', function (t) {
151 var init = requireInject('../../lib/init', {
162 'init',
167 init(['name'], function () {})