diff --git a/test/unit/middleware/changeLanguage.js b/test/unit/middleware/changeLanguage.js index 8de2d3a1f..beb2753bf 100644 --- a/test/unit/middleware/changeLanguage.js +++ b/test/unit/middleware/changeLanguage.js @@ -183,7 +183,7 @@ module.exports.tests.success_conditions = (test, common) => { // doc with name that will be translated { name: { - default: 'original name for 1st result', + default: 'original name for 4th result', 'requested language': 'translated name' }, // note that this is address! @@ -192,6 +192,19 @@ module.exports.tests.success_conditions = (test, common) => { layer1_id: ['1'], layer1: ['original name for layer1'] } + }, + // doc with name that will be translated + { + name: { + default: 'original name for 5th result', + 'random language': 'translated name' + }, + // note that this is address! + layer: 'address', + parent: { + layer1_id: ['1'], + layer1: ['original name for layer1'] + } } ] }; @@ -247,6 +260,17 @@ module.exports.tests.success_conditions = (test, common) => { layer1_id: ['1'], layer1: ['replacement name for layer1'] } + }, + { + name: { + default: 'original name for 5th result', + 'random language': 'translated name' + }, + layer: 'address', + parent: { + layer1_id: ['1'], + layer1: ['replacement name for layer1'] + } } ] });