diff --git a/views/components/__test__/Certification.spec.tsx b/views/components/__test__/Certification.spec.tsx new file mode 100644 index 00000000..fa8c352f --- /dev/null +++ b/views/components/__test__/Certification.spec.tsx @@ -0,0 +1,12 @@ +import * as React from 'react' +import { mountWithTheme } from '~/utils/withThemeProviders' +import Certification from '~/views/components/Certification' + +describe('Certification', () => { + + it('should render without throwing an error', function () { + const wrap = mountWithTheme() + expect(wrap).toMatchSnapshot() + }) + +}) diff --git a/views/components/__test__/__snapshots__/Certification.spec.tsx.snap b/views/components/__test__/__snapshots__/Certification.spec.tsx.snap new file mode 100644 index 00000000..14b0e43c --- /dev/null +++ b/views/components/__test__/__snapshots__/Certification.spec.tsx.snap @@ -0,0 +1,1356 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Certification should render without throwing an error 1`] = ` + + + + +
+
+
+ + +
+

+ Certifications and Prizes +

+
+
+
+
+ + +
    + + + +
  • + + + + + + +
    + + + + + + +
  • +
    +
    + + +
  • + + <StyledComponent + forwardedComponent={ + Object { + "$$typeof": Symbol(react.forward_ref), + "attrs": Array [], + "componentStyle": ComponentStyle { + "componentId": "Title-sc-1j54hu2-0", + "isStatic": false, + "lastClassName": "gmTcvb", + "rules": Array [ + "margin-bottom:10px;& span{color:", + [Function], + ";}", + ], + }, + "displayName": "Title", + "foldedComponentIds": Array [], + "render": [Function], + "styledComponentId": "Title-sc-1j54hu2-0", + "target": "h3", + "toString": [Function], + "warnTooManyClasses": [Function], + "withComponent": [Function], + } + } + forwardedRef={null} + > + <h3 + className="Title-sc-1j54hu2-0 gmTcvb" + > + <span> + 1 + </span> + — + <Translate + id="CertResearch" + > + <WrappedTranslate + context={ + Object { + "activeLanguage": undefined, + "addTranslation": [Function], + "addTranslationForLanguage": [Function], + "defaultLanguage": undefined, + "ignoreTranslateChildren": false, + "initialize": [Function], + "languages": Array [], + "renderToStaticMarkup": false, + "setActiveLanguage": [Function], + "translate": [Function], + } + } + id="CertResearch" + > + Missing translationId: CertResearch for language: \${ languageCode } + </WrappedTranslate> + </Translate> + </h3> + </StyledComponent> + +

    + + + Missing translationId: CertContentResearch for language: \${ languageCode } + + +

    +
  • +
    +
    +
    + + + +
  • + + + + + + +
    + + + + + + +
  • +
    +
    + + +
  • + + <StyledComponent + forwardedComponent={ + Object { + "$$typeof": Symbol(react.forward_ref), + "attrs": Array [], + "componentStyle": ComponentStyle { + "componentId": "Title-sc-1j54hu2-0", + "isStatic": false, + "lastClassName": "gmTcvb", + "rules": Array [ + "margin-bottom:10px;& span{color:", + [Function], + ";}", + ], + }, + "displayName": "Title", + "foldedComponentIds": Array [], + "render": [Function], + "styledComponentId": "Title-sc-1j54hu2-0", + "target": "h3", + "toString": [Function], + "warnTooManyClasses": [Function], + "withComponent": [Function], + } + } + forwardedRef={null} + > + <h3 + className="Title-sc-1j54hu2-0 gmTcvb" + > + <span> + 2 + </span> + — + <Translate + id="CertDevelop" + > + <WrappedTranslate + context={ + Object { + "activeLanguage": undefined, + "addTranslation": [Function], + "addTranslationForLanguage": [Function], + "defaultLanguage": undefined, + "ignoreTranslateChildren": false, + "initialize": [Function], + "languages": Array [], + "renderToStaticMarkup": false, + "setActiveLanguage": [Function], + "translate": [Function], + } + } + id="CertDevelop" + > + Missing translationId: CertDevelop for language: \${ languageCode } + </WrappedTranslate> + </Translate> + </h3> + </StyledComponent> + +

    + + + Missing translationId: CertContentDevelop for language: \${ languageCode } + + +

    +
  • +
    +
    +
    + + + +
  • + + + + + + +
    + + + + + + +
  • +
    +
    + + +
  • + + <StyledComponent + forwardedComponent={ + Object { + "$$typeof": Symbol(react.forward_ref), + "attrs": Array [], + "componentStyle": ComponentStyle { + "componentId": "Title-sc-1j54hu2-0", + "isStatic": false, + "lastClassName": "gmTcvb", + "rules": Array [ + "margin-bottom:10px;& span{color:", + [Function], + ";}", + ], + }, + "displayName": "Title", + "foldedComponentIds": Array [], + "render": [Function], + "styledComponentId": "Title-sc-1j54hu2-0", + "target": "h3", + "toString": [Function], + "warnTooManyClasses": [Function], + "withComponent": [Function], + } + } + forwardedRef={null} + > + <h3 + className="Title-sc-1j54hu2-0 gmTcvb" + > + <span> + 3 + </span> + — + <Translate + id="CertDeploy" + > + <WrappedTranslate + context={ + Object { + "activeLanguage": undefined, + "addTranslation": [Function], + "addTranslationForLanguage": [Function], + "defaultLanguage": undefined, + "ignoreTranslateChildren": false, + "initialize": [Function], + "languages": Array [], + "renderToStaticMarkup": false, + "setActiveLanguage": [Function], + "translate": [Function], + } + } + id="CertDeploy" + > + Missing translationId: CertDeploy for language: \${ languageCode } + </WrappedTranslate> + </Translate> + </h3> + </StyledComponent> + +

    + + + Missing translationId: CertContentDeploy for language: \${ languageCode } + + +

    +
  • +
    +
    +
    + + + +
  • + + + + + + +
    + + + + + + +
  • +
    +
    + + +
  • + + <StyledComponent + forwardedComponent={ + Object { + "$$typeof": Symbol(react.forward_ref), + "attrs": Array [], + "componentStyle": ComponentStyle { + "componentId": "Title-sc-1j54hu2-0", + "isStatic": false, + "lastClassName": "gmTcvb", + "rules": Array [ + "margin-bottom:10px;& span{color:", + [Function], + ";}", + ], + }, + "displayName": "Title", + "foldedComponentIds": Array [], + "render": [Function], + "styledComponentId": "Title-sc-1j54hu2-0", + "target": "h3", + "toString": [Function], + "warnTooManyClasses": [Function], + "withComponent": [Function], + } + } + forwardedRef={null} + > + <h3 + className="Title-sc-1j54hu2-0 gmTcvb" + > + <span> + 4 + </span> + — + <Translate + id="CertDeliver" + > + <WrappedTranslate + context={ + Object { + "activeLanguage": undefined, + "addTranslation": [Function], + "addTranslationForLanguage": [Function], + "defaultLanguage": undefined, + "ignoreTranslateChildren": false, + "initialize": [Function], + "languages": Array [], + "renderToStaticMarkup": false, + "setActiveLanguage": [Function], + "translate": [Function], + } + } + id="CertDeliver" + > + Missing translationId: CertDeliver for language: \${ languageCode } + </WrappedTranslate> + </Translate> + </h3> + </StyledComponent> + +

    + + + Missing translationId: CertContentDeliver for language: \${ languageCode } + + +

    +
  • +
    +
    +
    +
+
+
+
+
+
+
+
+
+`;