chore(client): ts-migrate Challenges/utils test (#44672)

* chore(challenges-utils): Change test util file extension

* chore(challenges-utils): typescript migration of Challenges util test
This commit is contained in:
Aleksa Kis
2022-01-04 16:59:50 +01:00
committed by GitHub
parent 51c2969555
commit 34a76659c1
2 changed files with 2 additions and 3 deletions

View File

@ -1,9 +1,8 @@
import { getGuideUrl } from './index';
import envData from '../../../../../config/env.json'; import envData from '../../../../../config/env.json';
const { forumLocation } = envData; const { forumLocation } = envData;
const { getGuideUrl } = require('./');
describe('index', () => { describe('index', () => {
describe('getGuideUrl', () => { describe('getGuideUrl', () => {
it('should use forum topic url when forumTopicId is supplied', () => { it('should use forum topic url when forumTopicId is supplied', () => {

View File

@ -3,7 +3,7 @@ import envData from '../../../../../config/env.json';
const { forumLocation } = envData; const { forumLocation } = envData;
interface GuideData { interface GuideData {
forumTopicId: number; forumTopicId?: number;
title?: string; title?: string;
} }