/
githubmirror
/
yarn
Обзор
Документация
Войти
/
githubmirror
/
yarn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
__tests__/commands/install/unit.js
21 строка
810 B
William Hilton
Update: Separate lockfile into its own npm package (#4114)
20 авг 2017, 02:53
20 авг 2017, 02:53
2b09caf
Код
Авторство
О чём код?
/* @flow */ import {NoopReporter} from '../../../src/reporters/index.js'; import {Install} from '../../../src/cli/commands/install.js'; import Lockfile from '../../../src/lockfile'; import Config from '../../../src/config.js'; const path = require('path'); const fixturesLoc = path.join(__dirname, '..', '..', 'fixtures', 'install'); test.concurrent('flat arg is inherited from root manifest', async (): Promise<void> => { const cwd = path.join(fixturesLoc, 'top-level-flat-parameter'); const reporter = new NoopReporter(); const config = await Config.create({cwd}); const install = new Install({}, config, reporter, new Lockfile()); return install.fetchRequestFromCwd().then(function({manifest}) { expect(manifest.flat).toEqual(true); expect(install.flags.flat).toEqual(true); }); });