renovate/lib/modules/datasource/clojure/__snapshots__/index.spec.ts.snap

135 lines
3.0 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`modules/datasource/clojure/index falls back to next registry url 1`] = `
{
"display": "org.example:package",
"group": "org.example",
"homepage": "https://package.example.org/about",
"name": "package",
"packageScope": "org.example",
"registryUrl": "https://clojars.org/repo",
"releases": [
{
"version": "0.0.1",
},
{
"releaseTimestamp": "2020-01-01T01:00:00.000Z",
"version": "1.0.0",
},
{
"releaseTimestamp": "2020-01-01T01:00:03.000Z",
"version": "1.0.3-SNAPSHOT",
},
{
"releaseTimestamp": "2020-01-01T02:00:00.000Z",
"version": "2.0.0",
},
],
}
`;
exports[`modules/datasource/clojure/index ignores unsupported protocols 1`] = `
[
{
"version": "0.0.1",
},
{
"releaseTimestamp": "2020-01-01T01:00:00.000Z",
"version": "1.0.0",
},
{
"releaseTimestamp": "2020-01-01T01:00:03.000Z",
"version": "1.0.3-SNAPSHOT",
},
{
"releaseTimestamp": "2020-01-01T02:00:00.000Z",
"version": "2.0.0",
},
]
`;
exports[`modules/datasource/clojure/index returns releases from custom repository 1`] = `
{
"display": "org.example:package",
"group": "org.example",
"homepage": "https://package.example.org/about",
"isPrivate": true,
"name": "package",
"packageScope": "org.example",
"registryUrl": "https://custom.registry.renovatebot.com",
"releases": [
{
"version": "0.0.1",
},
{
"releaseTimestamp": "2020-01-01T01:00:00.000Z",
"version": "1.0.0",
},
{
"releaseTimestamp": "2020-01-01T01:00:03.000Z",
"version": "1.0.3-SNAPSHOT",
},
{
"releaseTimestamp": "2020-01-01T02:00:00.000Z",
"version": "2.0.0",
},
],
}
`;
exports[`modules/datasource/clojure/index skips registry with invalid XML 1`] = `
{
"display": "org.example:package",
"group": "org.example",
"homepage": "https://package.example.org/about",
"name": "package",
"packageScope": "org.example",
"registryUrl": "https://clojars.org/repo",
"releases": [
{
"version": "0.0.1",
},
{
"releaseTimestamp": "2020-01-01T01:00:00.000Z",
"version": "1.0.0",
},
{
"releaseTimestamp": "2020-01-01T01:00:03.000Z",
"version": "1.0.3-SNAPSHOT",
},
{
"releaseTimestamp": "2020-01-01T02:00:00.000Z",
"version": "2.0.0",
},
],
}
`;
exports[`modules/datasource/clojure/index skips registry with invalid metadata structure 1`] = `
{
"display": "org.example:package",
"group": "org.example",
"homepage": "https://package.example.org/about",
"name": "package",
"packageScope": "org.example",
"registryUrl": "https://clojars.org/repo",
"releases": [
{
"version": "0.0.1",
},
{
"releaseTimestamp": "2020-01-01T01:00:00.000Z",
"version": "1.0.0",
},
{
"releaseTimestamp": "2020-01-01T01:00:03.000Z",
"version": "1.0.3-SNAPSHOT",
},
{
"releaseTimestamp": "2020-01-01T02:00:00.000Z",
"version": "2.0.0",
},
],
}
`;