diff --git a/client/src/templates/Challenges/utils/index.test.js b/client/src/templates/Challenges/utils/index.test.ts similarity index 94% rename from client/src/templates/Challenges/utils/index.test.js rename to client/src/templates/Challenges/utils/index.test.ts index 69e459583f..310cf284de 100644 --- a/client/src/templates/Challenges/utils/index.test.js +++ b/client/src/templates/Challenges/utils/index.test.ts @@ -1,9 +1,8 @@ +import { getGuideUrl } from './index'; import envData from '../../../../../config/env.json'; const { forumLocation } = envData; -const { getGuideUrl } = require('./'); - describe('index', () => { describe('getGuideUrl', () => { it('should use forum topic url when forumTopicId is supplied', () => { diff --git a/client/src/templates/Challenges/utils/index.ts b/client/src/templates/Challenges/utils/index.ts index 5142978887..2b916adf97 100644 --- a/client/src/templates/Challenges/utils/index.ts +++ b/client/src/templates/Challenges/utils/index.ts @@ -3,7 +3,7 @@ import envData from '../../../../../config/env.json'; const { forumLocation } = envData; interface GuideData { - forumTopicId: number; + forumTopicId?: number; title?: string; }