From 820823ff493559578984a9e7897a7b91e236b46c Mon Sep 17 00:00:00 2001 From: David Bruant Date: Sat, 19 Jul 2025 12:40:42 +0200 Subject: [PATCH] reducing test case --- tests/fill-odt-template/each.js | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/tests/fill-odt-template/each.js b/tests/fill-odt-template/each.js index 73a9488..3056720 100644 --- a/tests/fill-odt-template/each.js +++ b/tests/fill-odt-template/each.js @@ -6,7 +6,7 @@ import {getOdtTemplate} from '../../scripts/odf/odtTemplate-forNode.js' import {fillOdtTemplate, getOdtTextContent} from '../../exports.js' -test('basic template filling with {#each}', async t => { +test.skip('basic template filling with {#each}', async t => { const templatePath = join(import.meta.dirname, '../fixtures/enum-courses.odt') const templateContent = `🧺 La liste de courses incroyable 🧺 @@ -44,7 +44,7 @@ Pâtes à lasagne (fraîches !) }); -test('Filling with {#each} and non-iterable value results in no error and empty result', async t => { +test.skip('Filling with {#each} and non-iterable value results in no error and empty result', async t => { const templatePath = join(import.meta.dirname, '../fixtures/enum-courses.odt') const templateContent = `🧺 La liste de courses incroyable 🧺 @@ -74,7 +74,7 @@ test('Filling with {#each} and non-iterable value results in no error and empty }); -test('template filling with {#each} generating a list', async t => { +test.skip('template filling with {#each} generating a list', async t => { const templatePath = join(import.meta.dirname, '../fixtures/liste-courses.odt') const templateContent = `🧺 La liste de courses incroyable 🧺 @@ -111,7 +111,7 @@ test('template filling with {#each} generating a list', async t => { }); -test('template filling with 2 sequential {#each}', async t => { +test.skip('template filling with 2 sequential {#each}', async t => { const templatePath = join(import.meta.dirname, '../fixtures/liste-fruits-et-légumes.odt') const templateContent = `Liste de fruits et légumes @@ -163,7 +163,7 @@ Poivron 🫑 }); -test('template filling with nested {#each}s', async t => { +test.skip('template filling with nested {#each}s', async t => { const templatePath = join(import.meta.dirname, '../fixtures/légumes-de-saison.odt') const templateContent = `Légumes de saison @@ -248,7 +248,7 @@ Hiver }); -test('template filling with text after {/each} in same text node', async t => { +test.skip('template filling with text after {/each} in same text node', async t => { const templatePath = join(import.meta.dirname, '../fixtures/text-after-closing-each.odt') const templateContent = `Légumes de saison @@ -285,7 +285,7 @@ Blette, }); -test('template filling of a table', async t => { +test.skip('template filling of a table', async t => { const templatePath = join(import.meta.dirname, '../fixtures/tableau-simple.odt') const templateContent = `Évolution énergie en kWh par personne en France @@ -356,17 +356,7 @@ test('Mysterious {#each} bug', async t => { const data = { liste_espèces_par_impact: [ - { - "liste_espèces":[ - { - "nomVernaculaire":"Phragmite aquatique", - "nomScientifique":"Acrocephalus paludicola", - "liste_impacts_quantifiés":["101-1000"] - } - ], - "impact":"Destruction intentionnelle, capture ou perturbation intentionnelle de spécimens", - "liste_noms_impacts_quantifiés":["Nombre d'individus"] - } + {} ] }