1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/unit/api/__snapshots__/api.publish.spec.js.snap
Ayush Sharma cbcfc9a48b
test: Increase coverage publish api tests (#1056)
* 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
2018-10-18 15:44:58 +02:00

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,
},
],
}
`;