smoke-tests/test/proxy.js
raw| 1 | const t = require('tap') |
| 2 | const setup = require('./fixtures/setup.js') |
| 3 | |
| 4 | t.test('proxy', async t => { |
| 5 | const { npm, readFile } = await setup(t, { |
| 6 | mockRegistry: false, |
| 7 | useProxy: true, |
| 8 | }) |
| 9 | |
| 10 | await npm('install', '[email protected]') |
| 11 | |
| 12 | t.strictSame(await readFile('package.json'), { |
| 13 | dependencies: { abbrev: '^1.0.4' }, |
| 14 | }) |
| 15 | }) |