mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
cbcfc9a48b
* refactor: ES6 sugar * refactor: improves code in publish * refactor: add tests for upload tarball and add a version flow * refactor: unpublish endpoint tests * refactor: publish endpoint test * docs: adds code blocks to publish functionality * refactor: rename tests file name * refactor: improves logic for npm star command * refactor: replaces assert equal with strictEqual
49 lines
910 B
Plaintext
49 lines
910 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Publish endpoints - publish package should add a new package 1`] = `
|
|
[MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
"verdaccio",
|
|
Object {
|
|
"dist-tags": Object {},
|
|
"name": "verdaccio",
|
|
"time": Object {},
|
|
"versions": Object {},
|
|
},
|
|
[Function],
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"isThrow": false,
|
|
"value": undefined,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Publish endpoints - publish package should change the existing package 1`] = `
|
|
[MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
"verdaccio",
|
|
Object {
|
|
"dist-tags": Object {},
|
|
"name": "verdaccio",
|
|
"time": Object {},
|
|
"versions": Object {},
|
|
},
|
|
undefined,
|
|
[Function],
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"isThrow": false,
|
|
"value": undefined,
|
|
},
|
|
],
|
|
}
|
|
`;
|