/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/programmatic/internal_config.mocha.js
23 строки
530 B
Unitech
Add Docker parallel test runner with Node.js and Bun support
06 фев 2026, 14:57
06 фев 2026, 14:57
63dc543
Код
Авторство
О чём код?
const PM2 = require('../..'); const should = require('should'); describe('Internal PM2 configuration', function() { var pm2 before(function() { pm2 = new PM2.custom(); }) it('should set pm2:registry', function(done) { pm2.set('pm2:registry', 'http://thing.com', done) }) it('should new instance have the configuration', function(done) { var pm3 = new PM2.custom(); pm3.connect(() => { should(pm3.user_conf.registry).eql('http://thing.com') pm3.disconnect(() => done()) }) }) })