Skip to content

Commit

Permalink
fix: fix cnpm case
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Jun 16, 2020
1 parent d26899e commit 945c797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/midway-init/test/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe('test/init.test.js', () => {
'test',
],
]);
await command.run(tmp, '--dir=.tmp/test --package=midway-boilerplate-typescript --registry=https://registry.cnpmjs.org');
await command.run(tmp, '--dir=.tmp/test --package=midway-boilerplate-typescript --registry=https://r.cnpmjs.org');

assert(fs.existsSync(path.join(targetDir, '.gitignore')));
assert(fs.existsSync(path.join(targetDir, 'package.json')));
Expand All @@ -190,7 +190,7 @@ describe('test/init.test.js', () => {
'test',
],
]);
await command.run(tmp, '--dir=.tmp/test --package=midway-boilerplate-typescript --registry=registry.cnpmjs.org');
await command.run(tmp, '--dir=.tmp/test --package=midway-boilerplate-typescript --registry=r.cnpmjs.org');

assert(fs.existsSync(path.join(targetDir, '.gitignore')));
assert(fs.existsSync(path.join(targetDir, 'package.json')));
Expand Down

0 comments on commit 945c797

Please sign in to comment.