mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
c264f944fb
* fix: unpublish and add or remove star colision The issue was the npm star use a similar payload, but we did not check properly the shape of the payload, this fix and allow unpublish correctly. Improve unit testing for publishing and unpublishing Add new code documentation for future changes. * chore: update secrets baseline * chore: add missing type this will requires update types in the future
50 lines
982 B
Plaintext
50 lines
982 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Publish endpoints - publish package should change the existing package 1`] = `[MockFunction]`;
|
|
|
|
exports[`Publish endpoints - publish package should publish a new a new package 1`] = `
|
|
[MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
"verdaccio",
|
|
Object {
|
|
"dist-tags": Object {},
|
|
"name": "verdaccio",
|
|
"time": Object {},
|
|
"versions": Object {},
|
|
},
|
|
[Function],
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Publish endpoints - publish package test start should star a package 1`] = `
|
|
[MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
"verdaccio",
|
|
Object {
|
|
"users": Object {
|
|
"verdaccio": true,
|
|
},
|
|
},
|
|
"15-e53a77096b0ee33e",
|
|
[Function],
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
}
|
|
`;
|