fix tests

This commit is contained in:
silverwind 2023-06-20 01:13:22 +02:00
parent 7a5a93999b
commit 873ecd5e2c
Signed by untrusted user: silverwind
GPG Key ID: 2E62B41C93869443
2 changed files with 5 additions and 2 deletions

@ -287,7 +287,6 @@ exports[`pypi 1`] = `
{
"tool.poetry.group.dev.dependencies": {
"djlint": {
"age": "5 days",
"info": "https://github.com/Riverside-Healthcare/djlint",
"new": "1.31.0",
"old": "1.30.0",

@ -101,7 +101,11 @@ function makeTest(args) {
const {results} = JSON.parse(stdout);
// Parse results, with custom validation for the dynamic "age" property
for (const dependencyType of dependencyTypes) {
for (const dependencyType of [
...dependencyTypes,
"tool.poetry.dependencies",
"tool.poetry.group.dev.dependencies"
]) {
for (const name of Object.keys(results[dependencyType] || {})) {
delete results[dependencyType][name].age;
}