From 384da77f11c275602fc53d61de88f94e9668ddd4 Mon Sep 17 00:00:00 2001 From: Pierre Cavin Date: Fri, 27 Dec 2024 21:06:26 +0100 Subject: [PATCH] test: tdd be like --- lib/modules/manager/mix/extract.spec.ts | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/lib/modules/manager/mix/extract.spec.ts b/lib/modules/manager/mix/extract.spec.ts index 6e79bfabf21ae6c..3314500df2bb48d 100644 --- a/lib/modules/manager/mix/extract.spec.ts +++ b/lib/modules/manager/mix/extract.spec.ts @@ -20,12 +20,14 @@ 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', }, { @@ -33,6 +35,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '0.6.0', datasource: 'github-tags', depName: 'cowboy', + depType: 'dependencies', packageName: 'ninenines/cowboy', }, { @@ -40,6 +43,7 @@ describe('modules/manager/mix/extract', () => { currentValue: 'main', datasource: 'git-tags', depName: 'phoenix', + depType: 'dependencies', packageName: 'https://github.com/phoenixframework/phoenix.git', }, { @@ -47,42 +51,49 @@ describe('modules/manager/mix/extract', () => { 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', }, { @@ -90,24 +101,28 @@ describe('modules/manager/mix/extract', () => { 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", }, ]); @@ -122,6 +137,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '~> 0.8.1', datasource: 'hex', depName: 'postgrex', + depType: 'dependencies', packageName: 'postgrex', lockedVersion: '0.8.4', }, @@ -129,6 +145,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '<1.7.0 or ~>1.7.1', datasource: 'hex', depName: 'ranch', + depType: 'dependencies', packageName: 'ranch', lockedVersion: '1.7.1', }, @@ -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', }, @@ -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, }, @@ -153,6 +172,7 @@ describe('modules/manager/mix/extract', () => { currentValue: undefined, datasource: 'github-tags', depName: 'ecto', + depType: 'dependencies', packageName: 'elixir-ecto/ecto', lockedVersion: undefined, }, @@ -160,6 +180,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '~> 1.0', datasource: 'hex', depName: 'secret', + depType: 'dependencies', packageName: 'secret:acme', lockedVersion: '1.5.0', }, @@ -167,6 +188,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '~> 1.0', datasource: 'hex', depName: 'also_secret', + depType: 'devDependencies', packageName: 'also_secret:acme', lockedVersion: '1.3.4', }, @@ -174,6 +196,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '>0.2.0 and <=1.0.0', datasource: 'hex', depName: 'metrics', + depType: 'dependencies', packageName: 'metrics', lockedVersion: '1.0.0', }, @@ -181,6 +204,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '>= 1.0.0', datasource: 'hex', depName: 'jason', + depType: 'dependencies', packageName: 'jason', lockedVersion: '1.4.4', }, @@ -188,6 +212,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '~> 1.0', datasource: 'hex', depName: 'hackney', + depType: 'dependencies', packageName: 'hackney', lockedVersion: '1.20.1', }, @@ -195,6 +220,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '~> 6.1', datasource: 'hex', depName: 'hammer_backend_redis', + depType: 'dependencies', packageName: 'hammer_backend_redis', lockedVersion: '6.2.0', }, @@ -203,6 +229,7 @@ describe('modules/manager/mix/extract', () => { currentVersion: '1.0.10', datasource: 'hex', depName: 'castore', + depType: 'dependencies', packageName: 'castore', lockedVersion: '1.0.10', }, @@ -210,6 +237,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '~> 2.0.0', datasource: 'hex', depName: 'gun', + depType: 'dependencies', packageName: 'grpc_gun', lockedVersion: '2.0.1', }, @@ -217,6 +245,7 @@ describe('modules/manager/mix/extract', () => { currentValue: '~> 0.4.0', datasource: 'hex', depName: 'another_gun', + depType: 'dependencies', packageName: 'raygun', lockedVersion: '0.4.0', }, @@ -224,6 +253,7 @@ describe('modules/manager/mix/extract', () => { currentValue: "~> 1.7", datasource: "hex", depName: "credo", + depType: 'devDependencies', packageName: "credo", lockedVersion: "1.7.10", },