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:
@ -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', () => {
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user