100% coverage
All checks were successful
Distribution check / Generated files check (push) Successful in -2m3s
NPM Audit Check / Check NPM audit (push) Successful in -2m10s
Unit tests / Unit tests (latest) (push) Successful in -2m2s
Unit tests / Unit tests (lts/*) (push) Successful in -2m1s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -2m1s
All checks were successful
Distribution check / Generated files check (push) Successful in -2m3s
NPM Audit Check / Check NPM audit (push) Successful in -2m10s
Unit tests / Unit tests (latest) (push) Successful in -2m2s
Unit tests / Unit tests (lts/*) (push) Successful in -2m1s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -2m1s
This commit is contained in:
@@ -22,6 +22,25 @@ describe('pkgbase parser', () => {
|
||||
await expect(parse(path.join('test', 'resources', rDir, 'pkgbase.old.yaml'), path.join('test', 'resources', rDir, 'pkgbase.new.yaml'))).resolves.toEqual(expected);
|
||||
});
|
||||
|
||||
it('can detect an add operation on a new repo', async () => {
|
||||
const expected: Result = {
|
||||
build: true,
|
||||
move: false,
|
||||
delete: [],
|
||||
actions: {
|
||||
addRepo: 'world',
|
||||
removeRepo: null,
|
||||
triggersBuild: true,
|
||||
triggersRebuild: false,
|
||||
triggersRepoAdd: true,
|
||||
triggersRepoRemove: false,
|
||||
triggersNoCheck: false
|
||||
}
|
||||
};
|
||||
const rDir = 'add-new';
|
||||
await expect(parse(path.join('test', 'resources', rDir, 'pkgbase.old.yaml'), path.join('test', 'resources', rDir, 'pkgbase.new.yaml'))).resolves.toEqual(expected);
|
||||
});
|
||||
|
||||
it('can remove dangling packages in an add operation', async () => {
|
||||
const expected: Result = {
|
||||
build: true,
|
||||
|
||||
Reference in New Issue
Block a user