more verbose delete details, fix logic
All checks were successful
Distribution check / Generated files check (push) Successful in -2m2s
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 -2m2s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -2m1s
All checks were successful
Distribution check / Generated files check (push) Successful in -2m2s
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 -2m2s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -2m1s
This commit is contained in:
@@ -26,7 +26,14 @@ describe('pkgbase parser', () => {
|
||||
const expected: Result = {
|
||||
build: true,
|
||||
move: false,
|
||||
delete: ['pidgin'],
|
||||
delete: [
|
||||
{
|
||||
architecture: "x86_64",
|
||||
package: "pidgin",
|
||||
repository: "world",
|
||||
version: "2.14.14-3",
|
||||
}
|
||||
],
|
||||
actions: {
|
||||
addRepo: 'world',
|
||||
removeRepo: null,
|
||||
@@ -45,7 +52,12 @@ describe('pkgbase parser', () => {
|
||||
const expected: Result = {
|
||||
build: false,
|
||||
move: true,
|
||||
delete: ['opencascade'],
|
||||
delete: [{
|
||||
architecture: "x86_64",
|
||||
package: "opencascade",
|
||||
repository: "world-gremlins",
|
||||
version: "1:7.9.2-1",
|
||||
}],
|
||||
actions: {
|
||||
addRepo: 'world',
|
||||
removeRepo: 'world-gremlins',
|
||||
@@ -64,7 +76,26 @@ describe('pkgbase parser', () => {
|
||||
const expected: Result = {
|
||||
build: false,
|
||||
move: true,
|
||||
delete: ['pidgin', 'libpurple', 'finch'],
|
||||
delete: [
|
||||
{
|
||||
architecture: "x86_64",
|
||||
package: "pidgin",
|
||||
repository: "world",
|
||||
version: "2.14.14-3",
|
||||
},
|
||||
{
|
||||
architecture: "x86_64",
|
||||
package: "libpurple",
|
||||
repository: "world-gremlins",
|
||||
version: "2.14.14-4",
|
||||
},
|
||||
{
|
||||
architecture: "x86_64",
|
||||
package: "finch",
|
||||
repository: "world-gremlins",
|
||||
version: "2.14.14-4",
|
||||
}
|
||||
],
|
||||
actions: {
|
||||
addRepo: 'world',
|
||||
removeRepo: 'world-gremlins',
|
||||
@@ -83,7 +114,26 @@ describe('pkgbase parser', () => {
|
||||
const expected: Result = {
|
||||
build: false,
|
||||
move: false,
|
||||
delete: ['world/python-nntplib', 'world/python-cgi', 'world/python-mailcap'],
|
||||
delete: [
|
||||
{
|
||||
architecture: "any",
|
||||
package: "python-nntplib",
|
||||
repository: "world",
|
||||
version: "3.13.0-2",
|
||||
},
|
||||
{
|
||||
architecture: "any",
|
||||
package: "python-cgi",
|
||||
repository: "world",
|
||||
version: "3.13.0-2",
|
||||
},
|
||||
{
|
||||
architecture: "any",
|
||||
package: "python-mailcap",
|
||||
repository: "world",
|
||||
version: "3.13.0-2",
|
||||
}
|
||||
],
|
||||
actions: {
|
||||
addRepo: null,
|
||||
removeRepo: 'world',
|
||||
|
||||
Reference in New Issue
Block a user