/
githubmirror
/
atom
Обзор
Документация
Войти
/
githubmirror
/
atom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
script/lib/update-dependency/spec/fetch-outdated-dependencies-spec.js
27 строк
921 B
darangi
added tests
29 июн 2020, 15:37
29 июн 2020, 15:37
bbf874f
Код
Авторство
О чём код?
const path = require('path'); const fetchOutdatedDependencies = require('../fetch-outdated-dependencies'); const { nativeDependencies } = require('./helpers'); const repositoryRootPath = path.resolve('.', 'fixtures', 'dummy'); const packageJSON = require(path.join(repositoryRootPath, 'package.json')); describe('Fetch outdated dependencies', function() { it('should fetch outdated native dependencies', async () => { spyOn(fetchOutdatedDependencies, 'npm').andReturn( Promise.resolve(nativeDependencies) ); expect(await fetchOutdatedDependencies.npm(repositoryRootPath)).toEqual( nativeDependencies ); }); it('should fetch outdated core dependencies', async () => { spyOn(fetchOutdatedDependencies, 'apm').andReturn( Promise.resolve(nativeDependencies) ); expect(await fetchOutdatedDependencies.apm(packageJSON)).toEqual( nativeDependencies ); }); });