mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
a7ba76423e
* test: add test for whoami * Update middleware.ts * test for user api * more test for user api * remove repeated code * refactor * Update index.spec.ts * add package test refactor others * chore: upgrade deps * chore: add test for package * chore: update test * update lock file * Update ci.yml * Update ci.yml * Update package.spec.ts * chore: update ci settings * chore: update deps * chore: update test
49 lines
982 B
Text
49 lines
982 B
Text
// 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,
|
|
},
|
|
],
|
|
}
|
|
`;
|