Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
layoutTemplate: 'es_layout'
}
}
}
});
test.isFalse(_.isUndefined(router.routes['en.about']), 'Route name "en.about" was not found.');
test.equal(router.routes['en.about'].options.layoutTemplate, 'base_layout', 'Base layout of route "about" is not "base_layout".');
test.isFalse(_.isUndefined(router.routes['it.chi-siamo']), 'Route "chi-siamo" does not exists.');
test.equal(router.routes['it.chi-siamo'].options.layoutTemplate, 'base_layout', 'Base layout of route "chi-siamo" is not inherited as "base_layout".');
test.equal(router.routes['it.chi-siamo'].options.template, 'about_it_template', 'Template for route "chi-siamo" is not overridden "about_it_template"');
test.isFalse(_.isUndefined(router.routes['es.quienes-somos']), 'Route "quienes-somos" does not exists.');
test.equal(router.routes['es.quienes-somos'].options.layoutTemplate, 'es_layout', 'Base layout of route "quienes-somos" is not overridden as "es_layout".');
});
path: '/quienes-somos',
layoutTemplate: 'es_layout'
}
}
}
});
test.isFalse(_.isUndefined(router.routes['en.about']), 'Route name "en.about" was not found.');
test.equal(router.routes['en.about'].options.layoutTemplate, 'base_layout', 'Base layout of route "about" is not "base_layout".');
test.isFalse(_.isUndefined(router.routes['it.chi-siamo']), 'Route "chi-siamo" does not exists.');
test.equal(router.routes['it.chi-siamo'].options.layoutTemplate, 'base_layout', 'Base layout of route "chi-siamo" is not inherited as "base_layout".');
test.equal(router.routes['it.chi-siamo'].options.template, 'about_it_template', 'Template for route "chi-siamo" is not overridden "about_it_template"');
test.isFalse(_.isUndefined(router.routes['es.quienes-somos']), 'Route "quienes-somos" does not exists.');
test.equal(router.routes['es.quienes-somos'].options.layoutTemplate, 'es_layout', 'Base layout of route "quienes-somos" is not overridden as "es_layout".');
});