From c07705a9077b6941df7a21efc7cb06745fdd5955 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 13 Nov 2019 22:26:46 +0400 Subject: [PATCH] Fix failing tests --- test/path-map.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/path-map.spec.js b/test/path-map.spec.js index 7c1d1e756..c57abd353 100644 --- a/test/path-map.spec.js +++ b/test/path-map.spec.js @@ -20,6 +20,7 @@ describe("Build scripts tests", () => { '/terms': { page: '/terms' }, '/guides': { page: '/guides/index' }, '/roadmaps': { page: '/roadmaps' }, + '/signup': { page: '/signup' }, }); }); @@ -59,7 +60,7 @@ describe("Build scripts tests", () => { test('it should generate valid roadmap routes', () => { const expectedPathMap = roadmaps.reduce((roadmapAcc, roadmap) => { // Routes for each of the versions of this roadmap - const versionRoutes = roadmap.versions.reduce((versionAcc, version) => ({ + const versionRoutes = (roadmap.versions || []).reduce((versionAcc, version) => ({ ...versionAcc, [`${roadmap.url}/${version}`]: { page: '/[roadmap]/[version]',