Skip to content

Commit

Permalink
test: tdd be like
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Dec 27, 2024
1 parent acc80ee commit 384da77
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lib/modules/manager/mix/extract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,94 +20,109 @@ describe('modules/manager/mix/extract', () => {
currentValue: '~> 0.8.1',
datasource: 'hex',
depName: 'postgrex',
depType: 'dependencies',
packageName: 'postgrex',
},
{
currentValue: '<1.7.0 or ~>1.7.1',
datasource: 'hex',
depName: 'ranch',
depType: 'dependencies',
packageName: 'ranch',
},
{
currentDigest: undefined,
currentValue: '0.6.0',
datasource: 'github-tags',
depName: 'cowboy',
depType: 'dependencies',
packageName: 'ninenines/cowboy',
},
{
currentDigest: undefined,
currentValue: 'main',
datasource: 'git-tags',
depName: 'phoenix',
depType: 'dependencies',
packageName: 'https://github.com/phoenixframework/phoenix.git',
},
{
currentDigest: '795036d997c7503b21fb64d6bf1a89b83c44f2b5',
currentValue: undefined,
datasource: 'github-tags',
depName: 'ecto',
depType: 'dependencies',
packageName: 'elixir-ecto/ecto',
},
{
currentValue: '~> 1.0',
datasource: 'hex',
depName: 'secret',
depType: 'dependencies',
packageName: 'secret:acme',
},
{
currentValue: '~> 1.0',
datasource: 'hex',
depName: 'also_secret',
depType: 'devDependencies',
packageName: 'also_secret:acme',
},
{
currentValue: '>0.2.0 and <=1.0.0',
datasource: 'hex',
depName: 'metrics',
depType: 'dependencies',
packageName: 'metrics',
},
{
currentValue: '>= 1.0.0',
datasource: 'hex',
depName: 'jason',
depType: 'dependencies',
packageName: 'jason',
},
{
currentValue: '~> 1.0',
datasource: 'hex',
depName: 'hackney',
depType: 'dependencies',
packageName: 'hackney',
},
{
currentValue: '~> 6.1',
datasource: 'hex',
depName: 'hammer_backend_redis',
depType: 'dependencies',
packageName: 'hammer_backend_redis',
},
{
currentValue: '== 1.0.10',
currentVersion: '1.0.10',
datasource: 'hex',
depName: 'castore',
depType: 'dependencies',
packageName: 'castore',
},
{
currentValue: '~> 2.0.0',
datasource: 'hex',
depName: 'gun',
depType: 'dependencies',
packageName: 'grpc_gun',
},
{
currentValue: '~> 0.4.0',
datasource: 'hex',
depName: 'another_gun',
depType: 'dependencies',
packageName: 'raygun',
},
{
currentValue: "~> 1.7",
datasource: "hex",
depName: "credo",
depType: 'devDependencies',
packageName: "credo",
},
]);
Expand All @@ -122,13 +137,15 @@ describe('modules/manager/mix/extract', () => {
currentValue: '~> 0.8.1',
datasource: 'hex',
depName: 'postgrex',
depType: 'dependencies',
packageName: 'postgrex',
lockedVersion: '0.8.4',
},
{
currentValue: '<1.7.0 or ~>1.7.1',
datasource: 'hex',
depName: 'ranch',
depType: 'dependencies',
packageName: 'ranch',
lockedVersion: '1.7.1',
},
Expand All @@ -137,6 +154,7 @@ describe('modules/manager/mix/extract', () => {
currentValue: '0.6.0',
datasource: 'github-tags',
depName: 'cowboy',
depType: 'dependencies',
packageName: 'ninenines/cowboy',
lockedVersion: '0.6.0',
},
Expand All @@ -145,6 +163,7 @@ describe('modules/manager/mix/extract', () => {
currentValue: 'main',
datasource: 'git-tags',
depName: 'phoenix',
depType: 'dependencies',
packageName: 'https://github.com/phoenixframework/phoenix.git',
lockedVersion: undefined,
},
Expand All @@ -153,48 +172,55 @@ describe('modules/manager/mix/extract', () => {
currentValue: undefined,
datasource: 'github-tags',
depName: 'ecto',
depType: 'dependencies',
packageName: 'elixir-ecto/ecto',
lockedVersion: undefined,
},
{
currentValue: '~> 1.0',
datasource: 'hex',
depName: 'secret',
depType: 'dependencies',
packageName: 'secret:acme',
lockedVersion: '1.5.0',
},
{
currentValue: '~> 1.0',
datasource: 'hex',
depName: 'also_secret',
depType: 'devDependencies',
packageName: 'also_secret:acme',
lockedVersion: '1.3.4',
},
{
currentValue: '>0.2.0 and <=1.0.0',
datasource: 'hex',
depName: 'metrics',
depType: 'dependencies',
packageName: 'metrics',
lockedVersion: '1.0.0',
},
{
currentValue: '>= 1.0.0',
datasource: 'hex',
depName: 'jason',
depType: 'dependencies',
packageName: 'jason',
lockedVersion: '1.4.4',
},
{
currentValue: '~> 1.0',
datasource: 'hex',
depName: 'hackney',
depType: 'dependencies',
packageName: 'hackney',
lockedVersion: '1.20.1',
},
{
currentValue: '~> 6.1',
datasource: 'hex',
depName: 'hammer_backend_redis',
depType: 'dependencies',
packageName: 'hammer_backend_redis',
lockedVersion: '6.2.0',
},
Expand All @@ -203,27 +229,31 @@ describe('modules/manager/mix/extract', () => {
currentVersion: '1.0.10',
datasource: 'hex',
depName: 'castore',
depType: 'dependencies',
packageName: 'castore',
lockedVersion: '1.0.10',
},
{
currentValue: '~> 2.0.0',
datasource: 'hex',
depName: 'gun',
depType: 'dependencies',
packageName: 'grpc_gun',
lockedVersion: '2.0.1',
},
{
currentValue: '~> 0.4.0',
datasource: 'hex',
depName: 'another_gun',
depType: 'dependencies',
packageName: 'raygun',
lockedVersion: '0.4.0',
},
{
currentValue: "~> 1.7",
datasource: "hex",
depName: "credo",
depType: 'devDependencies',
packageName: "credo",
lockedVersion: "1.7.10",
},
Expand Down

0 comments on commit 384da77

Please sign in to comment.