1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/unit/api/__snapshots__/update-banner.spec.js.snap
2019-02-24 23:20:25 +01:00

118 lines
3.8 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Verdaccio update banner should print major update banner 1`] = `
[MockFunction] {
"calls": Array [
Array [
"
A new MAJOR version of Verdaccio is available. 3.0.0 → 4.5.6 
Run npm install -g verdaccio to update.
Registry: https://registry.npmjs.org
Changelog: https://github.com/verdaccio/verdaccio/releases/tag/v4.5.6
",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
],
}
`;
exports[`Verdaccio update banner should print minor update banner 1`] = `
[MockFunction] {
"calls": Array [
Array [
"
A new MINOR version of Verdaccio is available. 4.0.0 → 4.5.6 
Run npm install -g verdaccio to update.
Registry: https://registry.npmjs.org
Changelog: https://github.com/verdaccio/verdaccio/releases/tag/v4.5.6
",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
],
}
`;
exports[`Verdaccio update banner should print patch update banner 1`] = `
[MockFunction] {
"calls": Array [
Array [
"
A new PATCH version of Verdaccio is available. 4.5.0 → 4.5.6 
Run npm install -g verdaccio to update.
Registry: https://registry.npmjs.org
Changelog: https://github.com/verdaccio/verdaccio/releases/tag/v4.5.6
",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
],
}
`;
exports[`Verdaccio update banner when default registry returns with error 1`] = `
[MockFunction] {
"calls": Array [
Array [
"
Unable to check verdaccio version on https://registry.npmjs.org
Error: {\\"message\\":\\"internal server error\\",\\"statusCode\\":500}
",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
],
}
`;
exports[`create banner should create a major update banner 1`] = `
"
A new MAJOR version of Verdaccio is available. 1.0.0 → 2.0.0 
Run npm install -g verdaccio to update.
Registry: https://registry.npmjs.org
Changelog: https://github.com/verdaccio/verdaccio/releases/tag/v2.0.0
"
`;
exports[`create banner should create a minor update banner 1`] = `
"
A new MINOR version of Verdaccio is available. 1.0.0 → 1.1.0 
Run npm install -g verdaccio to update.
Registry: https://registry.npmjs.org
Changelog: https://github.com/verdaccio/verdaccio/releases/tag/v1.1.0
"
`;
exports[`create banner should create a patch update banner 1`] = `
"
A new PATCH version of Verdaccio is available. 1.0.0 → 1.0.1 
Run npm install -g verdaccio to update.
Registry: https://registry.npmjs.org
Changelog: https://github.com/verdaccio/verdaccio/releases/tag/v1.0.1
"
`;
exports[`createErrorBanner should create an error banner 1`] = `
"
Unable to check verdaccio version on https://registry.npmjs.org
Error: message
"
`;