fix: typos in names (#51896)

Co-authored-by: Viktor Szépe <viktor@szepe.net>
This commit is contained in:
Krzysztof G
2023-10-11 06:33:56 +02:00
committed by GitHub
parent 1d11d3274a
commit d7e0f59528
4 changed files with 26 additions and 26 deletions
+17 -17
View File
@@ -60,52 +60,52 @@ const challengePageContext = {
test('Challenges should have DefaultLayout and no footer', () => {
const challengePath =
'/learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements';
const compnentObj = getComponentNameAndProps(
const componentObj = getComponentNameAndProps(
Learn,
challengePath,
challengePageContext
);
expect(compnentObj.name).toEqual('DefaultLayout');
expect(compnentObj.props.showFooter).toEqual(false);
expect(componentObj.name).toEqual('DefaultLayout');
expect(componentObj.props.showFooter).toEqual(false);
});
test('SuperBlock path should have DefaultLayout and footer', () => {
const superBlockPath = '/learn/responsive-web-design/';
const compnentObj = getComponentNameAndProps(Learn, superBlockPath);
expect(compnentObj.name).toEqual('DefaultLayout');
expect(compnentObj.props.showFooter).toEqual(true);
const componentObj = getComponentNameAndProps(Learn, superBlockPath);
expect(componentObj.name).toEqual('DefaultLayout');
expect(componentObj.props.showFooter).toEqual(true);
});
test('i18n challenge path should have DefaultLayout and no footer', () => {
const challengePath =
'espanol/learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements/';
const compnentObj = getComponentNameAndProps(
const componentObj = getComponentNameAndProps(
Learn,
challengePath,
challengePageContext
);
expect(compnentObj.name).toEqual('DefaultLayout');
expect(compnentObj.props.showFooter).toEqual(false);
expect(componentObj.name).toEqual('DefaultLayout');
expect(componentObj.props.showFooter).toEqual(false);
});
test('i18n superBlock path should have DefaultLayout and footer', () => {
const superBlockPath = '/learn/responsive-web-design/';
const compnentObj = getComponentNameAndProps(Learn, superBlockPath);
expect(compnentObj.name).toEqual('DefaultLayout');
expect(compnentObj.props.showFooter).toEqual(true);
const componentObj = getComponentNameAndProps(Learn, superBlockPath);
expect(componentObj.name).toEqual('DefaultLayout');
expect(componentObj.props.showFooter).toEqual(true);
});
test('404 page should have DefaultLayout and footer', () => {
const challengePath =
'/espanol/learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements/';
const compnentObj = getComponentNameAndProps(FourOhFourPage, challengePath);
expect(compnentObj.name).toEqual('DefaultLayout');
expect(compnentObj.props.showFooter).toEqual(true);
const componentObj = getComponentNameAndProps(FourOhFourPage, challengePath);
expect(componentObj.name).toEqual('DefaultLayout');
expect(componentObj.props.showFooter).toEqual(true);
});
test('Certification path should have CertificationLayout', () => {
const challengePath =
'/certification/mot01/javascript-algorithms-and-data-structures/';
const compnentObj = getComponentNameAndProps(Certification, challengePath);
expect(compnentObj.name).toEqual('CertificationLayout');
const componentObj = getComponentNameAndProps(Certification, challengePath);
expect(componentObj.name).toEqual('CertificationLayout');
});