/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular_devkit/architect/node/jobs/job-registry_spec.ts
24 строки
734 B
Joey Perrott
refactor: move builtin module imports to use node: prefix imports
14 фев 2025, 22:09
14 фев 2025, 22:09
33ed6e8
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import * as path from 'node:path'; import { lastValueFrom } from 'rxjs'; import { jobs } from '../../src'; import { NodeModuleJobRegistry } from './job-registry'; const root = path.join(__dirname, '../test/jobs'); describe('NodeModuleJobScheduler', () => { it('works', async () => { const registry = new NodeModuleJobRegistry(); const scheduler = new jobs.SimpleScheduler(registry); const job = scheduler.schedule(path.join(root, 'add'), [1, 2, 3]); expect(await lastValueFrom(job.output)).toBe(6); }); });