Best JavaScript code snippet using stryker-parent
svgs.spec.js
Source:svgs.spec.js
...84} from '../svgs';85describe('<SVGDefinitions> svgs', () => {86 describe('<SVGArtworkEmpty>', () => {87 let component;88 beforeAll(() => {89 component = renderShallow(<SVGArtworkEmpty />).output;90 });91 test('renders a symbol', () => {92 expect(component.type).toEqual('symbol');93 });94 test('sets the correct ID', () => {95 expect(component.props.id).toEqual('icon-artwork-empty');96 });97 });98 describe('<SVGAttention>', () => {99 let component;100 beforeAll(() => {101 component = renderShallow(<SVGAttention />).output;102 });103 test('renders a symbol', () => {104 expect(component.type).toEqual('symbol');105 });106 test('sets the correct ID', () => {107 expect(component.props.id).toEqual('icon-attention');108 });109 });110 describe('<SVGAudioDisabled>', () => {111 let component;112 beforeAll(() => {113 component = renderShallow(<SVGAudioDisabled />).output;114 });115 test('renders a symbol', () => {116 expect(component.type).toEqual('symbol');117 });118 test('sets the correct ID', () => {119 expect(component.props.id).toEqual('icon-audio-disabled');120 });121 });122 describe('<SVGAudioEnabled>', () => {123 let component;124 beforeAll(() => {125 component = renderShallow(<SVGAudioEnabled />).output;126 });127 test('renders a symbol', () => {128 expect(component.type).toEqual('symbol');129 });130 test('sets the correct ID', () => {131 expect(component.props.id).toEqual('icon-audio-enabled');132 });133 });134 describe('<SVGAudioPlayerMute>', () => {135 let component;136 beforeAll(() => {137 component = renderShallow(<SVGAudioPlayerMute />).output;138 });139 test('renders a symbol', () => {140 expect(component.type).toEqual('symbol');141 });142 test('sets the correct ID', () => {143 expect(component.props.id).toEqual('icon-audio-player-mute');144 });145 });146 describe('<SVGAudioPlayerNext>', () => {147 let component;148 beforeAll(() => {149 component = renderShallow(<SVGAudioPlayerNext />).output;150 });151 test('renders a symbol', () => {152 expect(component.type).toEqual('symbol');153 });154 test('sets the correct ID', () => {155 expect(component.props.id).toEqual('icon-audio-player-next');156 });157 });158 describe('<SVGAudioPlayerNextLite>', () => {159 let component;160 beforeAll(() => {161 component = renderShallow(<SVGAudioPlayerNextLite />).output;162 });163 test('renders a symbol', () => {164 expect(component.type).toEqual('symbol');165 });166 test('sets the correct ID', () => {167 expect(component.props.id).toEqual('icon-audio-player-next-lite');168 });169 });170 describe('<SVGAudioPlayerPause>', () => {171 let component;172 beforeAll(() => {173 component = renderShallow(<SVGAudioPlayerPause />).output;174 });175 test('renders a symbol', () => {176 expect(component.type).toEqual('symbol');177 });178 test('sets the correct ID', () => {179 expect(component.props.id).toEqual('icon-audio-player-pause');180 });181 });182 describe('<SVGAudioPlayerPauseLite>', () => {183 let component;184 beforeAll(() => {185 component = renderShallow(<SVGAudioPlayerPauseLite />).output;186 });187 test('renders a symbol', () => {188 expect(component.type).toEqual('symbol');189 });190 test('sets the correct ID', () => {191 expect(component.props.id).toEqual('icon-audio-player-pause-lite');192 });193 });194 describe('<SVGAudioPlayerPlay>', () => {195 let component;196 beforeAll(() => {197 component = renderShallow(<SVGAudioPlayerPlay />).output;198 });199 test('renders a symbol', () => {200 expect(component.type).toEqual('symbol');201 });202 test('sets the correct ID', () => {203 expect(component.props.id).toEqual('icon-audio-player-play');204 });205 });206 describe('<SVGAudioPlayerPrevious>', () => {207 let component;208 beforeAll(() => {209 component = renderShallow(<SVGAudioPlayerPrevious />).output;210 });211 test('renders a symbol', () => {212 expect(component.type).toEqual('symbol');213 });214 test('sets the correct ID', () => {215 expect(component.props.id).toEqual('icon-audio-player-previous');216 });217 });218 describe('<SVGAudioPlayerPreviousLite>', () => {219 let component;220 beforeAll(() => {221 component = renderShallow(<SVGAudioPlayerPreviousLite />).output;222 });223 test('renders a symbol', () => {224 expect(component.type).toEqual('symbol');225 });226 test('sets the correct ID', () => {227 expect(component.props.id).toEqual('icon-audio-player-previous-lite');228 });229 });230 describe('<SVGAudioPlayerVolume>', () => {231 let component;232 beforeAll(() => {233 component = renderShallow(<SVGAudioPlayerVolume />).output;234 });235 test('renders a symbol', () => {236 expect(component.type).toEqual('symbol');237 });238 test('sets the correct ID', () => {239 expect(component.props.id).toEqual('icon-audio-player-volume');240 });241 });242 describe('<SVGCompleteCheckmark>', () => {243 let component;244 beforeAll(() => {245 component = renderShallow(<SVGCompleteCheckmark />).output;246 });247 test('renders a symbol', () => {248 expect(component.type).toEqual('symbol');249 });250 test('sets the correct ID', () => {251 expect(component.props.id).toEqual('icon-complete-checkmark');252 });253 });254 describe('<SVGDigital>', () => {255 let component;256 beforeAll(() => {257 component = renderShallow(<SVGDigital />).output;258 });259 test('renders a symbol', () => {260 expect(component.type).toEqual('symbol');261 });262 test('sets the correct ID', () => {263 expect(component.props.id).toEqual('icon-digital');264 });265 });266 describe('<SVGDigitalAudio>', () => {267 let component;268 beforeAll(() => {269 component = renderShallow(<SVGDigitalAudio />).output;270 });271 test('renders a symbol', () => {272 expect(component.type).toEqual('symbol');273 });274 test('sets the correct ID', () => {275 expect(component.props.id).toEqual('icon-digital-audio');276 });277 });278 describe('<SVGPhysical>', () => {279 let component;280 beforeAll(() => {281 component = renderShallow(<SVGPhysical />).output;282 });283 test('renders a symbol', () => {284 expect(component.type).toEqual('symbol');285 });286 test('sets the correct ID', () => {287 expect(component.props.id).toEqual('icon-physical');288 });289 });290 describe('<SVGPhysicalAudio>', () => {291 let component;292 beforeAll(() => {293 component = renderShallow(<SVGPhysicalAudio />).output;294 });295 test('renders a symbol', () => {296 expect(component.type).toEqual('symbol');297 });298 test('sets the correct ID', () => {299 expect(component.props.id).toEqual('icon-physical-audio');300 });301 });302 describe('<SVGFilm>', () => {303 let component;304 beforeAll(() => {305 component = renderShallow(<SVGFilm />).output;306 });307 test('renders a symbol', () => {308 expect(component.type).toEqual('symbol');309 });310 test('sets the correct ID', () => {311 expect(component.props.id).toEqual('icon-film');312 });313 });314 describe('<SVGInfo>', () => {315 let component;316 beforeAll(() => {317 component = renderShallow(<SVGInfo />).output;318 });319 test('renders a symbol', () => {320 expect(component.type).toEqual('symbol');321 });322 test('sets the correct ID', () => {323 expect(component.props.id).toEqual('icon-info');324 });325 });326 describe('<SVGStatusRed>', () => {327 let component;328 beforeAll(() => {329 component = renderShallow(<SVGStatusRed />).output;330 });331 test('renders a symbol', () => {332 expect(component.type).toEqual('symbol');333 });334 test('sets the correct ID', () => {335 expect(component.props.id).toEqual('icon-status-red');336 });337 });338 describe('<SVGStatusComplete>', () => {339 let component;340 beforeAll(() => {341 component = renderShallow(<SVGStatusComplete />).output;342 });343 test('renders a symbol', () => {344 expect(component.type).toEqual('symbol');345 });346 test('sets the correct ID', () => {347 expect(component.props.id).toEqual('icon-status-complete');348 });349 });350 describe('<SVGStatusInProgress>', () => {351 let component;352 beforeAll(() => {353 component = renderShallow(<SVGStatusInProgress />).output;354 });355 test('renders a symbol', () => {356 expect(component.type).toEqual('symbol');357 });358 test('sets the correct ID', () => {359 expect(component.props.id).toEqual('icon-status-in-progress');360 });361 });362 describe('<SVGStatusSubmitted>', () => {363 let component;364 beforeAll(() => {365 component = renderShallow(<SVGStatusSubmitted />).output;366 });367 test('renders a symbol', () => {368 expect(component.type).toEqual('symbol');369 });370 test('sets the correct ID', () => {371 expect(component.props.id).toEqual('icon-status-submitted');372 });373 });374 describe('<SVGCloseButton>', () => {375 let component;376 beforeAll(() => {377 component = renderShallow(<SVGCloseButton />).output;378 });379 test('renders a symbol', () => {380 expect(component.type).toEqual('symbol');381 });382 test('sets the correct ID', () => {383 expect(component.props.id).toEqual('icon-close');384 });385 });386 describe('<SVGUpload>', () => {387 let component;388 beforeAll(() => {389 component = renderShallow(<SVGUpload />).output;390 });391 test('renders a symbol', () => {392 expect(component.type).toEqual('symbol');393 });394 test('sets the correct ID', () => {395 expect(component.props.id).toEqual('icon-upload');396 });397 });398 describe('<SVGLoadingRing>', () => {399 let component;400 beforeAll(() => {401 component = renderShallow(<SVGLoadingRing />).output;402 });403 test('renders a symbol', () => {404 expect(component.type).toEqual('symbol');405 });406 test('sets the correct ID', () => {407 expect(component.props.id).toEqual('icon-loading-ring');408 });409 });410 describe('<SVGChevron>', () => {411 let component;412 beforeAll(() => {413 component = renderShallow(<SVGChevron />).output;414 });415 test('renders a symbol', () => {416 expect(component.type).toEqual('symbol');417 });418 test('sets the correct ID', () => {419 expect(component.props.id).toEqual('icon-chevron');420 });421 });422 describe('<SVGCalendar>', () => {423 let component;424 beforeAll(() => {425 component = renderShallow(<SVGCalendar />).output;426 });427 test('renders a symbol', () => {428 expect(component.type).toEqual('symbol');429 });430 test('sets the correct ID', () => {431 expect(component.props.id).toEqual('icon-calendar');432 });433 });434 describe('<SVGRightDirectionArrow>', () => {435 let component;436 beforeAll(() => {437 component = renderShallow(<SVGRightDirectionArrow />).output;438 });439 test('renders a symbol', () => {440 expect(component.type).toEqual('symbol');441 });442 test('sets the correct ID', () => {443 expect(component.props.id).toEqual('icon-right-direction-arrow');444 });445 });446 describe('<SVGSuccessCheckmark>', () => {447 let component;448 beforeAll(() => {449 component = renderShallow(<SVGSuccessCheckmark />).output;450 });451 test('renders a symbol', () => {452 expect(component.type).toEqual('symbol');453 });454 test('sets the correct ID', () => {455 expect(component.props.id).toEqual('icon-success-checkmark');456 });457 });458 describe('<SVGTrashCan>', () => {459 let component;460 beforeAll(() => {461 component = renderShallow(<SVGTrashCan />).output;462 });463 test('renders a symbol', () => {464 expect(component.type).toEqual('symbol');465 });466 test('sets the correct ID', () => {467 expect(component.props.id).toEqual('icon-trash-can');468 });469 });470 describe('<SVGSearch>', () => {471 let component;472 beforeAll(() => {473 component = renderShallow(<SVGSearch />).output;474 });475 test('renders a symbol', () => {476 expect(component.type).toEqual('symbol');477 });478 test('sets the correct ID', () => {479 expect(component.props.id).toEqual('icon-search');480 });481 });482 describe('<SVGThreeRightDirectedArrows>', () => {483 let component;484 beforeAll(() => {485 component = renderShallow(<SVGThreeRightDirectedArrows />).output;486 });487 test('renders a symbol', () => {488 expect(component.type).toEqual('symbol');489 });490 test('sets the correct ID', () => {491 expect(component.props.id).toEqual('icons-three-right-directed-arrows');492 });493 });494 describe('<SVGCloseRound>', () => {495 let component;496 beforeAll(() => {497 component = renderShallow(<SVGCloseRound />).output;498 });499 test('renders a symbol', () => {500 expect(component.type).toEqual('symbol');501 });502 test('sets the correct ID', () => {503 expect(component.props.id).toEqual('icon-close-round');504 });505 });506 describe('<SVGLeftPaginationArrow>', () => {507 let component;508 beforeAll(() => {509 component = renderShallow(<SVGLeftPaginationArrow />).output;510 });511 test('renders a symbol', () => {512 expect(component.type).toEqual('symbol');513 });514 test('sets the correct ID', () => {515 expect(component.props.id).toEqual('icon-left-pagination-arrow');516 });517 });518 describe('<SVGRightPaginationArrow>', () => {519 let component;520 beforeAll(() => {521 component = renderShallow(<SVGRightPaginationArrow />).output;522 });523 test('renders a symbol', () => {524 expect(component.type).toEqual('symbol');525 });526 test('sets the correct ID', () => {527 expect(component.props.id).toEqual('icon-right-pagination-arrow');528 });529 });530 describe('<SVGLogo>', () => {531 let component;532 beforeAll(() => {533 component = renderShallow(<SVGLogo />).output;534 });535 test('renders a symbol', () => {536 expect(component.type).toEqual('symbol');537 });538 test('sets the correct ID', () => {539 expect(component.props.id).toEqual('icon-logo');540 });541 });542 describe('<SVGLoadingArrows>', () => {543 let component;544 beforeAll(() => {545 component = renderShallow(<SVGLoadingArrows />).output;546 });547 test('renders a symbol', () => {548 expect(component.type).toEqual('symbol');549 });550 test('sets the correct ID', () => {551 expect(component.props.id).toEqual('icon-loading-arrows');552 });553 });554 describe('<SVGEdit>', () => {555 let component;556 beforeAll(() => {557 component = renderShallow(<SVGEdit />).output;558 });559 test('renders a symbol', () => {560 expect(component.type).toEqual('symbol');561 });562 test('sets the correct ID', () => {563 expect(component.props.id).toEqual('icon-edit');564 });565 });566 describe('<SVGCleanVersion>', () => {567 let component;568 beforeAll(() => {569 component = renderShallow(<SVGCleanVersion />).output;570 });571 test('renders a symbol', () => {572 expect(component.type).toEqual('symbol');573 });574 test('sets the correct ID', () => {575 expect(component.props.id).toEqual('icon-clean-version');576 });577 });578 describe('<SVGExternalLink>', () => {579 let component;580 beforeAll(() => {581 component = renderShallow(<SVGExternalLink />).output;582 });583 test('renders a symbol', () => {584 expect(component.type).toEqual('symbol');585 });586 test('sets the correct ID', () => {587 expect(component.props.id).toEqual('icon-external-link');588 });589 });590 describe('<SVGUpAndDownArrows>', () => {591 let component;592 beforeAll(() => {593 component = renderShallow(<SVGUpAndDownArrows />).output;594 });595 test('renders a symbol', () => {596 expect(component.type).toEqual('symbol');597 });598 test('sets the correct ID', () => {599 expect(component.props.id).toEqual('icon-up-and-down-arrows');600 });601 });602 describe('<SVGDownloadBox>', () => {603 let component;604 beforeAll(() => {605 component = renderShallow(<SVGDownloadBox />).output;606 });607 test('renders a symbol', () => {608 expect(component.type).toEqual('symbol');609 });610 test('sets the correct ID', () => {611 expect(component.props.id).toEqual('icon-download-box');612 });613 });614 describe('<SVGTripleCheckmark>', () => {615 let component;616 beforeAll(() => {617 component = renderShallow(<SVGTripleCheckmark />).output;618 });619 test('renders a symbol', () => {620 expect(component.type).toEqual('symbol');621 });622 test('sets the correct ID', () => {623 expect(component.props.id).toEqual('icon-triple-checkmark');624 });625 });626 describe('<SVGUpAndDownCarets>', () => {627 let component;628 beforeAll(() => {629 component = renderShallow(<SVGUpAndDownCarets />).output;630 });631 test('renders a symbol', () => {632 expect(component.type).toEqual('symbol');633 });634 test('sets the correct ID', () => {635 expect(component.props.id).toEqual('up-and-down-carets');636 });637 });638 describe('<SVGTracksEmpty>', () => {639 let component;640 beforeAll(() => {641 component = renderShallow(<SVGTracksEmpty />).output;642 });643 test('renders a symbol', () => {644 expect(component.type).toEqual('symbol');645 });646 test('sets the correct ID', () => {647 expect(component.props.id).toEqual('icon-tracks-empty');648 });649 });650 describe('<SVGTracksCompleteCheckmark>', () => {651 let component;652 beforeAll(() => {653 component = renderShallow(<SVGTracksCompleteCheckmark />).output;654 });655 test('renders a symbol', () => {656 expect(component.type).toEqual('symbol');657 });658 test('sets the correct ID', () => {659 expect(component.props.id).toEqual('icon-tracks-complete-checkmark');660 });661 });662 describe('<SVGViewMoreNextArrow>', () => {663 let component;664 beforeAll(() => {665 component = renderShallow(<SVGViewMoreNextArrow />).output;666 });667 test('renders a symbol', () => {668 expect(component.type).toEqual('symbol');669 });670 test('sets the correct ID', () => {671 expect(component.props.id).toEqual('icon-view-more-next-arrow');672 });673 });674 describe('<SVGPlus>', () => {675 let component;676 beforeAll(() => {677 component = renderShallow(<SVGPlus />).output;678 });679 test('renders a symbol', () => {680 expect(component.type).toEqual('symbol');681 });682 test('sets the correct ID', () => {683 expect(component.props.id).toEqual('icon-plus');684 });685 });686 describe('<SVGMan>', () => {687 let component;688 beforeAll(() => {689 component = renderShallow(<SVGMan />).output;690 });691 test('renders a symbol', () => {692 expect(component.type).toEqual('symbol');693 });694 test('sets the correct ID', () => {695 expect(component.props.id).toEqual('icon-man');696 });697 });698 describe('<SVGWoman>', () => {699 let component;700 beforeAll(() => {701 component = renderShallow(<SVGWoman />).output;702 });703 test('renders a symbol', () => {704 expect(component.type).toEqual('symbol');705 });706 test('sets the correct ID', () => {707 expect(component.props.id).toEqual('icon-woman');708 });709 });710 describe('<SVGDownDirectionArrow', () => {711 let component;712 beforeAll(() => {713 component = renderShallow(<SVGDownDirectionArrow />).output;714 });715 test('renders a symbol', () => {716 expect(component.type).toEqual('symbol');717 });718 test('sets the correct ID', () => {719 expect(component.props.id).toEqual('icon-down-direction-arrow');720 });721 });722 describe('<SVGUpDirectionArrow', () => {723 let component;724 beforeAll(() => {725 component = renderShallow(<SVGUpDirectionArrow />).output;726 });727 test('renders a symbol', () => {728 expect(component.type).toEqual('symbol');729 });730 test('sets the correct ID', () => {731 expect(component.props.id).toEqual('icon-up-direction-arrow');732 });733 });734 describe('<SVGDownloadSymbol>', () => {735 let component;736 beforeAll(() => {737 component = renderShallow(<SVGDownloadSymbol />).output;738 });739 test('renders a symbol', () => {740 expect(component.type).toEqual('symbol');741 });742 test('set the correct ID', () => {743 expect(component.props.id).toEqual('icon-download-symbol');744 });745 });746 describe('<SVGThreeDotsMore>', () => {747 let component;748 beforeAll(() => {749 component = renderShallow(<SVGThreeDots />).output;750 });751 test('renders a symbol', () => {752 expect(component.type).toEqual('symbol');753 });754 test('sets the correct ID', () => {755 expect(component.props.id).toEqual('icon-three-dots');756 });757 });758 describe('<SVGRefresh>', () => {759 let component;760 beforeAll(() => {761 component = renderShallow(<SVGRefresh />).output;762 });763 test('renders a symbol', () => {764 expect(component.type).toEqual('symbol');765 });766 test('sets the correct ID', () => {767 expect(component.props.id).toEqual('icon-refresh');768 });769 });770 describe('<SVGServerError>', () => {771 let component;772 beforeAll(() => {773 component = renderShallow(<SVGServerError />).output;774 });775 test('renders a symbol', () => {776 expect(component.type).toEqual('symbol');777 });778 test('sets the correct ID', () => {779 expect(component.props.id).toEqual('icon-server-error');780 });781 });782 describe('<SVGNewProduct>', () => {783 let component;784 beforeAll(() => {785 component = renderShallow(<SVGNewProduct />).output;786 });787 test('renders a symbol', () => {788 expect(component.type).toEqual('symbol');789 });790 test('sets the correct ID', () => {791 expect(component.props.id).toEqual('icon-new-product');792 });793 });794 describe('<SVGGoToCatalog>', () => {795 let component;796 beforeAll(() => {797 component = renderShallow(<SVGGoToCatalog />).output;798 });799 test('renders a symbol', () => {800 expect(component.type).toEqual('symbol');801 });802 test('sets the correct ID', () => {803 expect(component.props.id).toEqual('icon-go-to-catalog');804 });805 });806 describe('<SVGAdvertise>', () => {807 let component;808 beforeAll(() => {809 component = renderShallow(<SVGAdvertise />).output;810 });811 test('renders a symbol', () => {812 expect(component.type).toEqual('symbol');813 });814 test('sets the correct ID', () => {815 expect(component.props.id).toEqual('icon-advertise');816 });817 });818 describe('<SVGFilledChevronDown>', () => {819 let component;820 beforeAll(() => {821 component = renderShallow(<SVGFilledChevronDown />).output;822 });823 test('renders a symbol', () => {824 expect(component.type).toEqual('symbol');825 });826 test('sets the correct ID', () => {827 expect(component.props.id).toEqual('icon-filled-chevron-down');828 });829 });830 describe('<SVGFilledChevronUp>', () => {831 let component;832 beforeAll(() => {833 component = renderShallow(<SVGFilledChevronUp />).output;834 });835 test('renders a symbol', () => {836 expect(component.type).toEqual('symbol');837 });838 test('sets the correct ID', () => {839 expect(component.props.id).toEqual('icon-filled-chevron-up');840 });841 });842 describe('<SVGTransparentLogo>', () => {843 let component;844 beforeAll(() => {845 component = renderShallow(<SVGTransparentLogo />).output;846 });847 test('renders a symbol', () => {848 expect(component.type).toEqual('symbol');849 });850 test('sets the correct ID', () => {851 expect(component.props.id).toEqual('icon-transparent-logo');852 });853 });854 describe('<SVGHistory>', () => {855 let component;856 beforeAll(() => {857 component = renderShallow(<SVGHistory />).output;858 });859 test('renders a symbol', () => {860 expect(component.type).toEqual('symbol');861 });862 test('sets the correct ID', () => {863 expect(component.props.id).toEqual('icon-history');864 });865 });866 describe('<SVGPdf>', () => {867 let component;868 beforeAll(() => {869 component = renderShallow(<SVGPdf />).output;870 });871 test('renders a symbol', () => {872 expect(component.type).toEqual('symbol');873 });874 test('sets the correct ID', () => {875 expect(component.props.id).toEqual('icon-pdf');876 });877 });878 describe('<SVGXls>', () => {879 let component;880 beforeAll(() => {881 component = renderShallow(<SVGXls />).output;882 });883 test('renders a symbol', () => {884 expect(component.type).toEqual('symbol');885 });886 test('sets the correct ID', () => {887 expect(component.props.id).toEqual('icon-xls');888 });889 });890 describe('<SVGRoyaltyShareLogo>', () => {891 let component;892 beforeAll(() => {893 component = renderShallow(<SVGRoyaltyShareLogo />).output;894 });895 test('renders a symbol', () => {896 expect(component.type).toEqual('symbol');897 });898 test('sets the correct ID', () => {899 expect(component.props.id).toEqual('icon-royalty-share-logo');900 });901 });902 describe('<SVGError404>', () => {903 let component;904 beforeAll(() => {905 component = renderShallow(<SVGError404 />).output;906 });907 test('renders a symbol', () => {908 expect(component.type).toEqual('symbol');909 });910 test('sets the correct ID', () => {911 expect(component.props.id).toEqual('icon-error-404');912 });913 });914 describe('<SVGLogoAndName>', () => {915 let component;916 beforeAll(() => {917 component = renderShallow(<SVGLogoAndName />).output;918 });919 test('renders a symbol', () => {920 expect(component.type).toEqual('symbol');921 });922 test('sets the correct ID', () => {923 expect(component.props.id).toEqual('icon-logo-and-name');924 });925 });926 describe('<SVGGear>', () => {927 let component;928 beforeAll(() => {929 component = renderShallow(<SVGGear />).output;930 });931 test('renders a symbol', () => {932 expect(component.type).toEqual('symbol');933 });934 test('sets the correct ID', () => {935 expect(component.props.id).toEqual('icon-gear');936 });937 });938 describe('<SVGSpotify>', () => {939 let component;940 beforeAll(() => {941 component = renderShallow(<SVGSpotify />).output;942 });943 test('renders a symbol', () => {944 expect(component.type).toEqual('symbol');945 });946 test('sets the correct ID', () => {947 expect(component.props.id).toEqual('icon-spotify');948 });949 });950 describe('<SVGTwitter>', () => {951 let component;952 beforeAll(() => {953 component = renderShallow(<SVGTwitter />).output;954 });955 test('renders a symbol', () => {956 expect(component.type).toEqual('symbol');957 });958 test('sets the correct ID', () => {959 expect(component.props.id).toEqual('icon-twitter');960 });961 });962 describe('<SVGYoutube>', () => {963 let component;964 beforeAll(() => {965 component = renderShallow(<SVGYoutube />).output;966 });967 test('renders a symbol', () => {968 expect(component.type).toEqual('symbol');969 });970 test('sets the correct ID', () => {971 expect(component.props.id).toEqual('icon-youtube');972 });973 });974 describe('<SVGFacebook>', () => {975 let component;976 beforeAll(() => {977 component = renderShallow(<SVGFacebook />).output;978 });979 test('renders a symbol', () => {980 expect(component.type).toEqual('symbol');981 });982 test('sets the correct ID', () => {983 expect(component.props.id).toEqual('icon-facebook');984 });985 });986 describe('<SVGAan>', () => {987 let component;988 beforeAll(() => {989 component = renderShallow(<SVGAan />).output;990 });991 test('renders a symbol', () => {992 expect(component.type).toEqual('symbol');993 });994 test('sets the correct ID', () => {995 expect(component.props.id).toEqual('icon-aan');996 });997 });998 describe('<SVGPlaylistPlaceholder>', () => {999 let component;1000 beforeAll(() => {1001 component = renderShallow(<SVGPlaylistPlaceholder />).output;1002 });1003 test('renders a symbol', () => {1004 expect(component.type).toEqual('symbol');1005 });1006 test('sets the correct ID', () => {1007 expect(component.props.id).toEqual('icon-playlist-placeholder');1008 });1009 });1010 describe('<SVGUploadArrow>', () => {1011 let component;1012 beforeAll(() => {1013 component = renderShallow(<SVGUploadArrow />).output;1014 });1015 test('renders a symbol', () => {1016 expect(component.type).toEqual('symbol');1017 });1018 test('sets the correct ID', () => {1019 expect(component.props.id).toEqual('icon-upload-arrow');1020 });1021 });1022 describe('<SVGImportArrow>', () => {1023 let component;1024 beforeAll(() => {1025 component = renderShallow(<SVGImportArrow />).output;1026 });1027 test('renders a symbol', () => {1028 expect(component.type).toEqual('symbol');1029 });1030 test('sets the correct ID', () => {1031 expect(component.props.id).toEqual('icon-import-arrow');1032 });1033 });1034 describe('<SVGVideo>', () => {1035 let component;1036 beforeAll(() => {1037 component = renderShallow(<SVGVideo />).output;1038 });1039 test('renders a symbol', () => {1040 expect(component.type).toEqual('symbol');1041 });1042 test('sets the correct ID', () => {1043 expect(component.props.id).toEqual('icon-video');1044 });1045 });...
index.spec.js
Source:index.spec.js
...85} from '../';86describe('icons', () => {87 describe('<ArtworkEmpty>', () => {88 let component;89 beforeAll(() => {90 component = renderShallow(<ArtworkEmpty />).output;91 });92 test('renders an <Icon> with the correct prop.id', () => {93 expect(component).toMatchSnapshot();94 });95 });96 describe('<Attention>', () => {97 let component;98 beforeAll(() => {99 component = renderShallow(<Attention />).output;100 });101 test('renders an <Icon> with the correct prop.id', () => {102 expect(component).toMatchSnapshot();103 });104 });105 describe('<AudioDisabled>', () => {106 let component;107 beforeAll(() => {108 component = renderShallow(<AudioDisabled />).output;109 });110 test('renders an <Icon> with the correct prop.id', () => {111 expect(component).toMatchSnapshot();112 });113 });114 describe('<AudioEnabled>', () => {115 let component;116 beforeAll(() => {117 component = renderShallow(<AudioEnabled />).output;118 });119 test('renders an <Icon> with the correct prop.id', () => {120 expect(component).toMatchSnapshot();121 });122 });123 describe('<AudioPlayerMute>', () => {124 let component;125 beforeAll(() => {126 component = renderShallow(<AudioPlayerMute />).output;127 });128 test('renders an <Icon> with the correct prop.id', () => {129 expect(component).toMatchSnapshot();130 });131 });132 describe('<AudioPlayerNext>', () => {133 let component;134 beforeAll(() => {135 component = renderShallow(<AudioPlayerNext />).output;136 });137 test('renders an <Icon> with the correct prop.id', () => {138 expect(component).toMatchSnapshot();139 });140 });141 describe('<AudioPlayerNextLite>', () => {142 let component;143 beforeAll(() => {144 component = renderShallow(<AudioPlayerNextLite />).output;145 });146 test('renders an <Icon> with the correct prop.id', () => {147 expect(component).toMatchSnapshot();148 });149 });150 describe('<AudioPlayerPause>', () => {151 let component;152 beforeAll(() => {153 component = renderShallow(<AudioPlayerPause />).output;154 });155 test('renders an <Icon> with the correct prop.id', () => {156 expect(component).toMatchSnapshot();157 });158 });159 describe('<AudioPlayerPauseLite>', () => {160 let component;161 beforeAll(() => {162 component = renderShallow(<AudioPlayerPauseLite />).output;163 });164 test('renders an <Icon> with the correct prop.id', () => {165 expect(component).toMatchSnapshot();166 });167 });168 describe('<AudioPlayerPlay>', () => {169 let component;170 beforeAll(() => {171 component = renderShallow(<AudioPlayerPlay />).output;172 });173 test('renders an <Icon> with the correct prop.id', () => {174 expect(component).toMatchSnapshot();175 });176 });177 describe('<AudioPlayerPrevious>', () => {178 let component;179 beforeAll(() => {180 component = renderShallow(<AudioPlayerPrevious />).output;181 });182 test('renders an <Icon> with the correct prop.id', () => {183 expect(component).toMatchSnapshot();184 });185 });186 describe('<AudioPlayerPreviousLite>', () => {187 let component;188 beforeAll(() => {189 component = renderShallow(<AudioPlayerPreviousLite />).output;190 });191 test('renders an <Icon> with the correct prop.id', () => {192 expect(component).toMatchSnapshot();193 });194 });195 describe('<AudioPlayerVolume>', () => {196 let component;197 beforeAll(() => {198 component = renderShallow(<AudioPlayerVolume />).output;199 });200 test('renders an <Icon> with the correct prop.id', () => {201 expect(component).toMatchSnapshot();202 });203 });204 describe('<CompleteCheckmark>', () => {205 let component;206 beforeAll(() => {207 component = renderShallow(<CompleteCheckmark />).output;208 });209 test('renders an <Icon> with the correct prop.id', () => {210 expect(component).toMatchSnapshot();211 });212 });213 describe('<IncompleteAlert>', () => {214 let component;215 beforeAll(() => {216 component = renderShallow(<IncompleteAlert />).output;217 });218 test('renders an <Icon> with the correct prop.id', () => {219 expect(component).toMatchSnapshot();220 });221 });222 describe('<CleanVersion>', () => {223 let component;224 beforeAll(() => {225 component = renderShallow(<CleanVersion />).output;226 });227 test('renders an <Icon> with the correct prop.id', () => {228 expect(component).toMatchSnapshot();229 });230 });231 describe('<Calendar>', () => {232 let component;233 beforeAll(() => {234 component = renderShallow(<Calendar />).output;235 });236 test('renders an <Icon> with the correct prop.id', () => {237 expect(component).toMatchSnapshot();238 });239 });240 describe('<Chevron>', () => {241 let component;242 beforeAll(() => {243 component = renderShallow(<Chevron />).output;244 });245 test('renders an <Icon> with the correct prop.id', () => {246 expect(component).toMatchSnapshot();247 });248 });249 describe('<Info>', () => {250 let component;251 beforeAll(() => {252 component = renderShallow(<Info />).output;253 });254 test('renders an <Icon> with the correct prop.id', () => {255 expect(component).toMatchSnapshot();256 });257 });258 describe('<Digital>', () => {259 let component;260 beforeAll(() => {261 component = renderShallow(<Digital />).output;262 });263 test('renders an <Icon> with the correct prop.id', () => {264 expect(component).toMatchSnapshot();265 });266 });267 describe('<DigitalAudio>', () => {268 let component;269 beforeAll(() => {270 component = renderShallow(<DigitalAudio />).output;271 });272 test('renders an <Icon> with the correct prop.id', () => {273 expect(component).toMatchSnapshot();274 });275 });276 describe('<Explicit>', () => {277 describe('when it renders with required props', () => {278 let component;279 beforeAll(() => {280 component = renderShallow(<Explicit />).output;281 });282 test('renders an <Icon> with the correct prop.id', () => {283 expect(component).toMatchSnapshot();284 });285 });286 describe('when it renders with a style class', () => {287 const props = { className: 'test-class' };288 let component;289 beforeAll(() => {290 component = renderShallow(<Explicit { ...props } />).output;291 });292 test('renders an <Icon> the supplied style class', () => {293 expect(component).toMatchSnapshot();294 });295 });296 });297 describe('<Film>', () => {298 let component;299 beforeAll(() => {300 component = renderShallow(<Film />).output;301 });302 test('renders an <Icon> with the correct prop.id', () => {303 expect(component).toMatchSnapshot();304 });305 });306 describe('<Physical>', () => {307 let component;308 beforeAll(() => {309 component = renderShallow(<Physical />).output;310 });311 test('renders an <Icon> with the correct prop.id', () => {312 expect(component).toMatchSnapshot();313 });314 });315 describe('<PhysicalAudio>', () => {316 let component;317 beforeAll(() => {318 component = renderShallow(<PhysicalAudio />).output;319 });320 test('renders an <Icon> with the correct prop.id', () => {321 expect(component).toMatchSnapshot();322 });323 });324 describe('<StatusInProgress>', () => {325 let component;326 beforeAll(() => {327 component = renderShallow(<StatusInProgress />).output;328 });329 test('renders an <Icon> with the correct prop.id', () => {330 expect(component).toMatchSnapshot();331 });332 });333 describe('<StatusRed>', () => {334 let component;335 beforeAll(() => {336 component = renderShallow(<StatusRed />).output;337 });338 test('renders an <Icon> with the correct prop.id', () => {339 expect(component).toMatchSnapshot();340 });341 });342 describe('<StatusSubmitted>', () => {343 let component;344 beforeAll(() => {345 component = renderShallow(<StatusSubmitted />).output;346 });347 test('renders an <Icon> with the correct prop.id', () => {348 expect(component).toMatchSnapshot();349 });350 });351 describe('<RightDirectionArrow>', () => {352 let component;353 beforeAll(() => {354 component = renderShallow(<RightDirectionArrow />).output;355 });356 test('renders an <Icon> with correct prop.id', () => {357 expect(component).toMatchSnapshot();358 });359 });360 describe('<StatusComplete>', () => {361 let component;362 beforeAll(() => {363 component = renderShallow(<StatusComplete />).output;364 });365 test('renders an <Icon> with the correct prop.id', () => {366 expect(component).toMatchSnapshot();367 });368 });369 describe('<Close>', () => {370 describe('when it renders with no props', () => {371 let component;372 beforeAll(() => {373 component = renderShallow(<Close />).output;374 });375 test('renders an <Icon> with the correct prop.id', () => {376 expect(component).toMatchSnapshot();377 });378 });379 describe('when it renders with a className prop', () => {380 const props = {381 className: 'test-class-name'382 };383 let component;384 beforeAll(() => {385 component = renderShallow(<Close { ...props } />).output;386 });387 test('renders an <Icon> with the className prop', () => {388 expect(component).toMatchSnapshot();389 });390 });391 describe('when it renders with an onClick prop', () => {392 const props = {393 onClick: () => {}394 };395 let component;396 beforeAll(() => {397 component = renderShallow(<Close { ...props } />).output;398 });399 test('renders an <Icon> and passes the onClick prop to it', () => {400 expect(component.props.onClick).toEqual(props.onClick);401 });402 });403 });404 describe('<Upload>', () => {405 let component;406 beforeAll(() => {407 component = renderShallow(<Upload />).output;408 });409 test('renders an <Icon> with the correct prop.id', () => {410 expect(component).toMatchSnapshot();411 });412 });413 describe('<LoadingRing>', () => {414 let component;415 beforeAll(() => {416 component = renderShallow(<LoadingRing />).output;417 });418 test('renders an <Icon> with the correct prop.id', () => {419 expect(component).toMatchSnapshot();420 });421 });422 describe('<SuccessCheckmark>', () => {423 let component;424 beforeAll(() => {425 component = renderShallow(<SuccessCheckmark />).output;426 });427 test('renders an <Icon> with the correct prop.id', () => {428 expect(component).toMatchSnapshot();429 });430 });431 describe('<TrashCan>', () => {432 let component;433 beforeAll(() => {434 component = renderShallow(<TrashCan />).output;435 });436 test('renders an <Icon> with the correct prop.id', () => {437 expect(component).toMatchSnapshot();438 });439 });440 describe('<ThreeRightDirectedArrows>', () => {441 let component;442 beforeAll(() => {443 component = renderShallow(<ThreeRightDirectedArrows />).output;444 });445 test('renders an <Icon> with the correct prop.id', () => {446 expect(component).toMatchSnapshot();447 });448 });449 describe('<LeftPaginationArrow>', () => {450 let component;451 beforeAll(() => {452 component = renderShallow(<LeftPaginationArrow />).output;453 });454 test('renders an <Icon> with the correct prop.id', () => {455 expect(component).toMatchSnapshot();456 });457 });458 describe('<RightPaginationArrow>', () => {459 let component;460 beforeAll(() => {461 component = renderShallow(<RightPaginationArrow />).output;462 });463 test('renders an <Icon> with the correct prop.id', () => {464 expect(component).toMatchSnapshot();465 });466 });467 describe('<Logo>', () => {468 let component;469 beforeAll(() => {470 component = renderShallow(<Logo />).output;471 });472 test('renders an <Icon> with the correct prop.id', () => {473 expect(component).toMatchSnapshot();474 });475 });476 describe('<LoadingArrows>', () => {477 let component;478 beforeAll(() => {479 component = renderShallow(<LoadingArrows />).output;480 });481 test('renders an <Icon> with the correct prop.id', () => {482 expect(component).toMatchSnapshot();483 });484 });485 describe('<Edit>', () => {486 let component;487 beforeAll(() => {488 component = renderShallow(<Edit />).output;489 });490 test('renders an <Icon> with the correct prop.id', () => {491 expect(component).toMatchSnapshot();492 });493 });494 describe('<ExternalLink>', () => {495 let component;496 beforeAll(() => {497 component = renderShallow(<ExternalLink />).output;498 });499 test('renders an <Icon> with the correct prop.id', () => {500 expect(component).toMatchSnapshot();501 });502 });503 describe('<UpAndDownArrows>', () => {504 let component;505 const props = { className: 'test-class' };506 beforeAll(() => {507 component = renderShallow(<UpAndDownArrows { ...props } />).output;508 });509 test('renders an <Icon> with the correct prop.id', () => {510 expect(component).toMatchSnapshot();511 });512 });513 describe('<DownloadBox />', () => {514 let component;515 beforeAll(() => {516 component = renderShallow(<DownloadBox />).output;517 });518 test('renders an <Icon> with the correct prop.id', () => {519 expect(component).toMatchSnapshot();520 });521 });522 describe('<Play />', () => {523 let component;524 beforeAll(() => {525 component = renderShallow(<Play />).output;526 });527 test('renders an <Icon> with the correct prop.id', () => {528 expect(component).toMatchSnapshot();529 });530 });531 describe('<Stop />', () => {532 let component;533 beforeAll(() => {534 component = renderShallow(<Stop />).output;535 });536 test('renders an <Icon> with the correct prop.id', () => {537 expect(component).toMatchSnapshot();538 });539 });540 describe('<TracksEmpty>', () => {541 let component;542 beforeAll(() => {543 component = renderShallow(<TracksEmpty />).output;544 });545 test('renders an <Icon> with the correct prop.id', () => {546 expect(component).toMatchSnapshot();547 });548 });549 describe('<TracksCompleteCheckmark>', () => {550 let component;551 beforeAll(() => {552 component = renderShallow(<TracksCompleteCheckmark />).output;553 });554 test('renders an <Icon> with the correct prop.id', () => {555 expect(component).toMatchSnapshot();556 });557 });558 describe('<ViewMoreNextArrow>', () => {559 let component;560 beforeAll(() => {561 component = renderShallow(<ViewMoreNextArrow />).output;562 });563 test('renders an <Icon> with the correct prop.id', () => {564 expect(component).toMatchSnapshot();565 });566 });567 describe('<Plus>', () => {568 let component;569 beforeAll(() => {570 component = renderShallow(<Plus />).output;571 });572 test('renders an <Icon> with the correct prop.id', () => {573 expect(component).toMatchSnapshot();574 });575 });576 describe('<DownDirectionArrow>', () => {577 let component;578 beforeAll(() => {579 component = renderShallow(<DownDirectionArrow />).output;580 });581 test('renders an <Icon> with the correct prop.id', () => {582 expect(component).toMatchSnapshot();583 });584 });585 describe('<UpDirectionArrow>', () => {586 let component;587 beforeAll(() => {588 component = renderShallow(<UpDirectionArrow />).output;589 });590 test('renders an <Icon> with the correct prop.id', () => {591 expect(component).toMatchSnapshot();592 });593 });594 describe('<ThreeDots>', () => {595 let component;596 beforeAll(() => {597 component = renderShallow(<ThreeDots />).output;598 });599 test('renders an <Icon> with the correct prop.id', () => {600 expect(component).toMatchSnapshot();601 });602 });603 describe('<Refresh>', () => {604 let component;605 beforeAll(() => {606 component = renderShallow(<Refresh />).output;607 });608 test('renders an <Icon> with the correct prop.id', () => {609 expect(component).toMatchSnapshot();610 });611 });612 describe('<ServerError>', () => {613 let component;614 beforeAll(() => {615 component = renderShallow(<ServerError />).output;616 });617 test('renders an <Icon> with the correct prop.id', () => {618 expect(component).toMatchSnapshot();619 });620 });621 describe('<NewProduct>', () => {622 let component;623 beforeAll(() => {624 component = renderShallow(<NewProduct />).output;625 });626 test('renders an <Icon> with the correct prop.id', () => {627 expect(component).toMatchSnapshot();628 });629 });630 describe('<GoToCatalog>', () => {631 let component;632 beforeAll(() => {633 component = renderShallow(<GoToCatalog />).output;634 });635 test('renders an <Icon> with the correct prop.id', () => {636 expect(component).toMatchSnapshot();637 });638 });639 describe('<Advertise>', () => {640 let component;641 beforeAll(() => {642 component = renderShallow(<Advertise />).output;643 });644 test('renders an <Icon> with the correct prop.id', () => {645 expect(component).toMatchSnapshot();646 });647 });648 describe('<FilledChevronDown>', () => {649 let component;650 beforeAll(() => {651 component = renderShallow(<FilledChevronDown />).output;652 });653 test('renders an <Icon> with the correct prop.id', () => {654 expect(component).toMatchSnapshot();655 });656 });657 describe('<FilledChevronUp>', () => {658 let component;659 beforeAll(() => {660 component = renderShallow(<FilledChevronUp />).output;661 });662 test('renders an <Icon> with the correct prop.id', () => {663 expect(component).toMatchSnapshot();664 });665 });666 describe('<TransparentLogo>', () => {667 let component;668 beforeAll(() => {669 component = renderShallow(<TransparentLogo />).output;670 });671 test('renders an <Icon> with the correct prop.id', () => {672 expect(component).toMatchSnapshot();673 });674 });675 describe('<History>', () => {676 let component;677 beforeAll(() => {678 component = renderShallow(<History />).output;679 });680 test('renders an <Icon> with the correct prop.id', () => {681 expect(component).toMatchSnapshot();682 });683 });684 describe('<Pdf>', () => {685 let component;686 beforeAll(() => {687 component = renderShallow(<Pdf />).output;688 });689 test('renders an <Icon> with the correct prop.id', () => {690 expect(component).toMatchSnapshot();691 });692 });693 describe('<Xls>', () => {694 let component;695 beforeAll(() => {696 component = renderShallow(<Xls />).output;697 });698 test('renders an <Icon> with the correct prop.id', () => {699 expect(component).toMatchSnapshot();700 });701 });702 describe('<RoyaltyShareLogo>', () => {703 let component;704 beforeAll(() => {705 component = renderShallow(<RoyaltyShareLogo />).output;706 });707 test('renders an <Icon> with the correct prop.id', () => {708 expect(component).toMatchSnapshot();709 });710 });711 describe('<Error404>', () => {712 let component;713 beforeAll(() => {714 component = renderShallow(<Error404 />).output;715 });716 test('renders an <Icon> with the correct prop.id', () => {717 expect(component).toMatchSnapshot();718 });719 });720 describe('<LogoAndName>', () => {721 let component;722 beforeAll(() => {723 component = renderShallow(<LogoAndName />).output;724 });725 test('renders an <Icon> with the correct prop.id', () => {726 expect(component).toMatchSnapshot();727 });728 });729 describe('<Gear>', () => {730 let component;731 beforeAll(() => {732 component = renderShallow(<Gear />).output;733 });734 test('renders an <Icon> with the correct prop.id', () => {735 expect(component).toMatchSnapshot();736 });737 });738 describe('<Maintenance>', () => {739 let component;740 beforeAll(() => {741 component = renderShallow(<Maintenance />).output;742 });743 test('renders an SVG with the correct prop.id and tags', () => {744 expect(component).toMatchSnapshot();745 });746 });747 describe('<Spotify>', () => {748 let component;749 beforeAll(() => {750 component = renderShallow(<Spotify />).output;751 });752 test('renders an <Icon> with the correct prop.id', () => {753 expect(component).toMatchSnapshot();754 });755 });756 describe('<AppleMusic>', () => {757 let component;758 beforeAll(() => {759 component = renderShallow(<AppleMusic />).output;760 });761 test('renders an SVG with the correct prop.id and tags', () => {762 expect(component).toMatchSnapshot();763 });764 });765 describe('<Instagram />', () => {766 let component;767 beforeAll(() => {768 component = renderShallow(<Instagram />).output;769 });770 test('renders an SVG with the correct prop.id and tags', () => {771 expect(component).toMatchSnapshot();772 });773 });774 describe('<Twitter>', () => {775 let component;776 beforeAll(() => {777 component = renderShallow(<Twitter />).output;778 });779 test('renders an <Icon> with the correct prop.id', () => {780 expect(component).toMatchSnapshot();781 });782 });783 describe('<Facebook>', () => {784 let component;785 beforeAll(() => {786 component = renderShallow(<Facebook />).output;787 });788 test('renders an <Icon> with the correct prop.id', () => {789 expect(component).toMatchSnapshot();790 });791 });792 describe('<YouTube>', () => {793 let component;794 beforeAll(() => {795 component = renderShallow(<YouTube />).output;796 });797 test('renders an <Icon> with the correct prop.id', () => {798 expect(component).toMatchSnapshot();799 });800 });801 describe('<AAN>', () => {802 let component;803 beforeAll(() => {804 component = renderShallow(<Aan />).output;805 });806 test('renders an <Icon> with the correct prop.id', () => {807 expect(component).toMatchSnapshot();808 });809 });810 describe('<Camera>', () => {811 let component;812 beforeAll(() => {813 component = renderShallow(<Camera />).output;814 });815 test('renders an <Icon> with the correct prop.id', () => {816 expect(component).toMatchSnapshot();817 });818 });819 describe('<PlaylistPlaceholder>', () => {820 let component;821 beforeAll(() => {822 component = renderShallow(<PlaylistPlaceholder />).output;823 });824 test('renders an <Icon> with the correct prop.id', () => {825 expect(component).toMatchSnapshot();826 });827 });828 describe('<UploadArrow>', () => {829 let component;830 beforeAll(() => {831 component = renderShallow(<UploadArrow />).output;832 });833 test('renders an <Icon> with the correct prop.id', () => {834 expect(component).toMatchSnapshot();835 });836 });837 describe('<ImportArrow>', () => {838 let component;839 beforeAll(() => {840 component = renderShallow(<ImportArrow />).output;841 });842 test('renders an <Icon> with the correct prop.id', () => {843 expect(component).toMatchSnapshot();844 });845 });846 describe('<Video>', () => {847 let component;848 beforeAll(() => {849 component = renderShallow(<Video />).output;850 });851 test('renders an <Icon> with the correct prop.id', () => {852 expect(component).toMatchSnapshot();853 });854 });...
ph.spec.js
Source:ph.spec.js
2describe("NeutriumJS.thermo.IAWPS97 Pressure-Enthalpy equations", function() {3 describe("PH Region 1", function() {4 describe("correct results for P = 3 MPa, h = 500 kJ/kg", function() {5 var result;6 beforeAll(function() {7 result = ph.solve(3, 500);8 });9 it('Temperature (T) is correct', function() {10 expect(+result.t.toFixed(6)).toEqual(391.798509);11 });12 });13 describe("correct results for P = 80 MPa, h = 500 kJ/kg", function() {14 var result;15 beforeAll(function() {16 result = ph.solve(80, 500);17 });18 it('Temperature (T) is correct', function() {19 expect(+result.t.toFixed(6)).toEqual(378.108626);20 });21 });22 describe("correct results for P = 80 MPa, h = 1500 kJ/kg", function() {23 var result;24 beforeAll(function() {25 result = ph.solve(80, 1500);26 });27 it('Temperature (T) is correct', function() {28 expect(+result.t.toFixed(6)).toEqual(611.041229);29 });30 });31 });32 describe("PH Region 2", function() {33 describe("PH Region 2 boundary equations", function() {34 it('Boundary 2bc equation h = 3516.004323 kJ/kg', function() {35 expect(+ph.b2bc_H_P(3516.004323).toFixed(6)).toEqual(100);36 });37 it('Boundary 2bc equation P = 100 MPa', function() {38 expect(+ph.b2bc_P_H(100).toFixed(6)).toEqual(3516.004323);39 });40 });41 describe("PH Region 2a", function() {42 describe("correct results for P = 0.001 MPa, h = 3000 kJ/kg", function() {43 var result;44 beforeAll(function() {45 result = ph.solve(0.001, 3000);46 });47 it('Temperature (T) is correct', function() {48 expect(+result.t.toFixed(6)).toEqual(534.433241);49 });50 });51 describe("correct results for P = 3 MPa, h = 3000 kJ/kg", function() {52 var result;53 beforeAll(function() {54 result = ph.solve(3, 3000);55 });56 it('Temperature (T) is correct', function() {57 expect(+result.t.toFixed(5)).toEqual(575.37337);58 });59 });60 describe("correct results for P = 3 MPa, h = 4000 kJ/kg", function() {61 var result;62 beforeAll(function() {63 result = ph.solve(3, 4000);64 });65 it('Temperature (T) is correct', function() {66 expect(+result.t.toFixed(5)).toEqual(1010.77577);67 });68 });69 });70 describe("PH Region 2b", function() {71 describe("correct results for P = 5 MPa, h = 3500 kJ/kg", function() {72 var result;73 beforeAll(function() {74 result = ph.solve(5, 3500);75 });76 it('Temperature (T) is correct', function() {77 expect(+result.t.toFixed(6)).toEqual(801.299102);78 });79 });80 describe("correct results for P = 5 MPa, h = 4000 kJ/kg", function() {81 var result;82 beforeAll(function() {83 result = ph.solve(5, 4000);84 });85 it('Temperature (T) is correct', function() {86 expect(+result.t.toFixed(5)).toEqual(1015.31583);87 });88 });89 describe("correct results for P = 25 MPa, h = 3500 kJ/kg", function() {90 var result;91 beforeAll(function() {92 result = ph.solve(25, 3500);93 });94 it('Temperature (T) is correct', function() {95 expect(+result.t.toFixed(6)).toEqual(875.279054);96 });97 });98 });99 describe("PH Region 2c", function() {100 describe("correct results for P = 40 MPa, h = 2700 kJ/kg", function() {101 var result;102 beforeAll(function() {103 result = ph.solve(40, 2700);104 });105 it('Temperature (T) is correct', function() {106 expect(+result.t.toFixed(6)).toEqual(743.056411);107 });108 });109 describe("correct results for P = 60 MPa, h = 2700 kJ/kg", function() {110 var result;111 beforeAll(function() {112 result = ph.solve(60, 2700);113 });114 it('Temperature (T) is correct', function() {115 expect(+result.t.toFixed(6)).toEqual(791.137067);116 });117 });118 describe("correct results for P = 60 MPa, h = 3200 kJ/kg", function() {119 var result;120 beforeAll(function() {121 result = ph.solve(60, 3200);122 });123 it('Temperature (T) is correct', function() {124 expect(+result.t.toFixed(5)).toEqual(882.75686);125 });126 });127 });128 });129 describe("NeutriumJS.thermo.IAWPS97 PH Region 3", function() {130 describe("PH Region 3 boundary equations", function() {131 it('Boundary 3ab equation P = 25 MPa', function() {132 expect(+ph.b3ab_P_H(25).toFixed(6)).toEqual(2095.936454);133 });134 });135 describe("PH Region 3a", function() {136 describe("correct results for P = 20 MPa, h = 1700 kJ/kg", function() {137 var result, v;138 beforeAll(function() {139 result = ph.solve(20, 1700);140 v = ph.r3A_PH_V(20, 1700);141 });142 it('Temperature (T) is correct', function() {143 expect(+result.t.toFixed(7)).toEqual(629.3083892);144 });145 it('Specific gravity (v) is correct', function() {146 expect(+v.toFixed(12)).toEqual(0.001749903962);147 });148 });149 describe("correct results for P = 50 MPa, h = 2000 kJ/kg", function() {150 var result, v;151 beforeAll(function() {152 result = ph.solve(50, 2000);153 v = ph.r3A_PH_V(50, 2000);154 });155 it('Temperature (T) is correct', function() {156 expect(+result.t.toFixed(7)).toEqual(690.5718338);157 });158 it('Specific gravity (v) is correct', function() {159 expect(+v.toFixed(12)).toEqual(0.001908139035);160 });161 });162 describe("correct results for P = 100 MPa, h = 2100 kJ/kg", function() {163 var result, v;164 beforeAll(function() {165 result = ph.solve(100, 2100);166 v = ph.r3A_PH_V(100, 2100);167 });168 it('Temperature (T) is correct', function() {169 expect(+result.t.toFixed(7)).toEqual(733.6163014);170 });171 it('Specific gravity (v) is correct', function() {172 expect(+v.toFixed(12)).toEqual(0.001676229776);173 });174 });175 });176 describe("PH Region 3b", function() {177 describe("correct results for P = 20 MPa, h = 2500 kJ/kg", function() {178 var result, v;179 beforeAll(function() {180 result = ph.solve(20, 2500);181 v = ph.r3B_PH_V(20, 2500);182 });183 it('Temperature (T) is correct', function() {184 expect(+result.t.toFixed(7)).toEqual(641.8418053);185 });186 it('Specific gravity (v) is correct', function() {187 expect(+v.toFixed(12)).toEqual(0.006670547043);188 });189 });190 describe("correct results for P = 50 MPa, h = 2400 kJ/kg", function() {191 var result, v;192 beforeAll(function() {193 result = ph.solve(50, 2400);194 v = ph.r3B_PH_V(50, 2400);195 });196 it('Temperature (T) is correct', function() {197 expect(+result.t.toFixed(7)).toEqual(735.1848618);198 });199 it('Specific gravity (v) is correct', function() {200 expect(+v.toFixed(12)).toEqual(0.002801244590);201 });202 });203 describe("correct results for P = 100 MPa, h = 2700 kJ/kg", function() {204 var result;205 beforeAll(function() {206 result = ph.solve(100, 2700);207 v = ph.r3B_PH_V(100, 2700);208 });209 it('Temperature (T) is correct', function() {210 expect(+result.t.toFixed(7)).toEqual(842.0460876);211 });212 it('Specific gravity (v) is correct', function() {213 expect(+v.toFixed(12)).toEqual(0.002404234998);214 });215 });216 });217 });218 describe("PH Region 4", function() {219 describe("P_3sat(h) ", function() {...
ps.spec.js
Source:ps.spec.js
2describe("NeutriumJS.thermo.IAWPS97 Pressure-Entropy equations", function() {3 describe("PS Region 1", function() {4 describe("correct results for P = 3 MPa, s = 0.5 kJ/kg.K", function() {5 var result;6 beforeAll(function() {7 result = ps.solve(3, 0.5);8 });9 it('Temperature (T) is correct', function() {10 expect(+result.t.toFixed(6)).toEqual(307.842258);11 });12 });13 describe("correct results for P = 80 MPa, s = 0.5 kJ/kg.K", function() {14 var result;15 beforeAll(function() {16 result = ps.solve(80, 0.5);17 });18 it('Temperature (T) is correct', function() {19 expect(+result.t.toFixed(6)).toEqual(309.979785);20 });21 });22 describe("correct results for P = 80 MPa, s = 3 kJ/kg.K", function() {23 var result;24 beforeAll(function() {25 result = ps.solve(80, 3);26 });27 it('Temperature (T) is correct', function() {28 expect(+result.t.toFixed(6)).toEqual(565.899909);29 });30 });31 });32 describe("NeutriumJS.thermo.IAWPS97 PS Region 2", function() {33 describe("PS Region 2a", function() {34 describe("correct results for P = 0.1 MPa, s = 7.5 kJ/kg.K", function() {35 var result;36 beforeAll(function() {37 result = ps.solve(0.1, 7.5);38 });39 it('Temperature (T) is correct', function() {40 expect(+result.t.toFixed(6)).toEqual(399.517097);41 });42 });43 describe("correct results for P = 0.1 MPa, s = 8 kJ/kg.K", function() {44 var result;45 beforeAll(function() {46 result = ps.solve(0.1, 8);47 });48 it('Temperature (T) is correct', function() {49 expect(+result.t.toFixed(6)).toEqual(514.127082); // IAPWS check value is 514.127082 assumed to be a calculation error, to 15 sif figures that calculated value is 514.12708150011650 });51 });52 describe("correct results for P = 2.5 MPa, s = 8 kJ/kg.K", function() {53 var result;54 beforeAll(function() {55 result = ps.solve(2.5, 8);56 });57 it('Temperature (T) is correct', function() {58 expect(+result.t.toFixed(5)).toEqual(1039.84917);59 });60 });61 });62 describe("PS Region 2b", function() {63 describe("correct results for P = 8 MPa, s = 6 kJ/kg.K", function() {64 var result;65 beforeAll(function() {66 result = ps.solve(8, 6);67 });68 it('Temperature (T) is correct', function() {69 expect(+result.t.toFixed(5)).toEqual(600.48404);70 });71 });72 describe("correct results for P = 8 MPa, s = 7.5 kJ/kg.K", function() {73 var result;74 beforeAll(function() {75 result = ps.solve(8, 7.5);76 });77 it('Temperature (T) is correct', function() {78 expect(+result.t.toFixed(5)).toEqual(1064.95556);79 });80 });81 describe("correct results for P = 90 MPa, s = 6 kJ/kg.K", function() {82 var result;83 beforeAll(function() {84 result = ps.solve(90, 6);85 });86 it('Temperature (T) is correct', function() {87 expect(+result.t.toFixed(5)).toEqual(1038.01126);88 });89 });90 });91 describe("PS Region 2c", function() {92 describe("correct results for P = 20 MPa, s = 5.75 kJ/kg.K", function() {93 var result;94 beforeAll(function() {95 result = ps.solve(20, 5.75);96 });97 it('Temperature (T) is correct', function() {98 expect(+result.t.toFixed(6)).toEqual(697.992849);99 });100 });101 describe("correct results for P = 80 MPa, s = 5.25 kJ/kg.K", function() {102 var result;103 beforeAll(function() {104 result = ps.solve(80, 5.25);105 });106 it('Temperature (T) is correct', function() {107 expect(+result.t.toFixed(6)).toEqual(854.011484);108 });109 });110 describe("correct results for P = 80 MPa, s = 5.75 kJ/kg.K", function() {111 var result;112 beforeAll(function() {113 result = ps.solve(80, 5.75);114 });115 it('Temperature (T) is correct', function() {116 expect(+result.t.toFixed(6)).toEqual(949.017998);117 });118 });119 });120 });121 describe("NeutriumJS.thermo.IAWPS97 PS Region 3", function() {122 describe("PS Region 3a", function() {123 describe("correct results for P = 20 MPa, s = 3.8 kJ/kg.K", function() {124 var result, T;125 beforeAll(function() {126 result = ps.solve(20, 3.8);127 T = ps.r3A_PS_V(20, 3.8);128 });129 it('Temperature (T) is correct', function() {130 expect(+result.t.toFixed(7)).toEqual(628.2959869);131 });132 it('Specific gravity (v) is correct', function() {133 expect(+T.toFixed(12)).toEqual(0.001733791463);134 });135 });136 describe("correct results for P = 50 MPa, s = 3.6 kJ/kg.K", function() {137 var result, T;138 beforeAll(function() {139 result = ps.solve(50, 3.6);140 T = ps.r3A_PS_V(50, 3.6);141 });142 it('Temperature (T) is correct', function() {143 expect(+result.t.toFixed(7)).toEqual(629.7158726); // IAPWS check value is 514.127082 assumed to be a calculation error, to 15 sif figures that calculated value is 514.127081500116144 });145 it('Specific gravity (v) is correct', function() {146 expect(+T.toFixed(12)).toEqual(0.001469680170);147 });148 });149 describe("correct results for P = 100 MPa, s = 4 kJ/kg.K", function() {150 var result, T;151 beforeAll(function() {152 result = ps.solve(100, 4);153 T = ps.r3A_PS_V(100, 4);154 });155 it('Temperature (T) is correct', function() {156 expect(+result.t.toFixed(7)).toEqual(705.6880237);157 });158 it('Specific gravity (v) is correct', function() {159 expect(+T.toFixed(12)).toEqual(0.001555893131);160 });161 });162 });163 describe("PS Region 3b", function() {164 describe("correct results for P = 20 MPa, s = 5 kJ/kg.K", function() {165 var result, T;166 beforeAll(function() {167 result = ps.solve(20, 5);168 T = ps.r3B_PS_V(20, 5);169 });170 it('Temperature (T) is correct', function() {171 expect(+result.t.toFixed(7)).toEqual(640.1176443);172 });173 it('Specific gravity (v) is correct', function() {174 expect(+T.toFixed(12)).toEqual(0.006262101987);175 });176 });177 describe("correct results for P = 50 MPa, s = 4.5 kJ/kg.K", function() {178 var result, T;179 beforeAll(function() {180 result = ps.solve(50, 4.5);181 T = ps.r3B_PS_V(50, 4.5);182 });183 it('Temperature (T) is correct', function() {184 expect(+result.t.toFixed(7)).toEqual(716.3687517);185 });186 it('Specific gravity (v) is correct', function() {187 expect(+T.toFixed(12)).toEqual(0.002332634294);188 });189 });190 describe("correct results for P = 100 MPa, s = 5 kJ/kg.K", function() {191 var result, T;192 beforeAll(function() {193 result = ps.solve(100, 5);194 T = ps.r3B_PS_V(100, 5);195 });196 it('Temperature (T) is correct', function() {197 expect(+result.t.toFixed(7)).toEqual(847.4332825);198 });199 it('Specific gravity (v) is correct', function() {200 expect(+T.toFixed(12)).toEqual(0.002449610757);201 });202 });203 });204 });...
helpers.js
Source:helpers.js
...7 }8 function decrementValue() {9 val--;10 }11 beforeAll(incrementValue);12 beforeEach(incrementValue);13 setup(incrementValue);14 teardown(decrementValue);15 afterEach(decrementValue);16 afterAll(decrementValue);17 it('should have run setup', function() {18 assert(val, 3);19 });20 it('should have run teardown', function() {21 assert(val, 3);22 });23 describe('Nested', function() {24 beforeAll(incrementValue);25 beforeEach(incrementValue);26 setup(incrementValue);27 teardown(decrementValue);28 afterEach(decrementValue);29 afterAll(decrementValue);30 it('should inherit from parent helper blocks', function() {31 assert(val, 6);32 });33 it('should not get confused with multiple nested tests', function() {34 assert(val, 6);35 });36 });37 });38 describe('Order', function() {39 var values;40 var previousValues;41 function onSuiteStart() {42 values = [];43 }44 function onSuiteEnd() {45 previousValues = values;46 values = null;47 }48 function push(arg) {49 return function() {50 values.push(arg);51 };52 }53 beforeAll(onSuiteStart);54 beforeAll(push('Outer beforeAll 1'));55 beforeAll(push('Outer beforeAll 2'));56 beforeEach(push('Outer beforeEach 1'));57 beforeEach(push('Outer beforeEach 2'));58 afterEach(push('Outer afterEach 1'));59 afterEach(push('Outer afterEach 2'));60 afterAll(push('Outer afterAll 1'));61 afterAll(push('Outer afterAll 2'));62 afterAll(onSuiteEnd);63 describe('Nested', function() {64 var testRan = false;65 beforeAll(push('Inner beforeAll 1'));66 beforeAll(push('Inner beforeAll 2'));67 beforeEach(push('Inner beforeEach 1'));68 beforeEach(push('Inner beforeEach 2'));69 afterAll(push('Inner afterAll 1'));70 afterAll(push('Inner afterAll 2'));71 afterEach(push('Inner afterEach 1'));72 afterEach(push('Inner afterEach 2'));73 var expectedBeforeAll = [74 'Outer beforeAll 1',75 'Outer beforeAll 2',76 'Inner beforeAll 1',77 'Inner beforeAll 2'78 ];79 var expectedBeforeEach = [80 'Outer beforeEach 1',81 'Outer beforeEach 2',82 'Inner beforeEach 1',83 'Inner beforeEach 2'84 ];85 var expectedAfterAll = [86 'Inner afterAll 1',87 'Inner afterAll 2',88 'Outer afterAll 1',89 'Outer afterAll 2'90 ];91 var expectedAfterEach = [92 'Inner afterEach 1',93 'Inner afterEach 2',94 'Outer afterEach 1',95 'Outer afterEach 2'96 ];97 function assertPreviousRun() {98 var expected = [].concat(99 expectedBeforeAll,100 expectedBeforeEach,101 expectedAfterEach,102 expectedBeforeEach,103 expectedAfterEach,104 expectedAfterAll105 );106 assertArrayEqual(previousValues, expected);107 }108 function assertCurrentRun() {109 var expected = expectedBeforeAll.concat(expectedBeforeEach);110 if (testRan) {111 expected = expected.concat(expectedAfterEach);112 expected = expected.concat(expectedBeforeEach);113 }114 assertArrayEqual(values, expected);115 // Don't add more tests!116 testRan = !testRan;117 }118 function assertHelperOrder() {119 if (previousValues) {120 assertPreviousRun();121 }122 assertCurrentRun();123 }124 it('should have executed helpers in correct order', assertHelperOrder);125 it('should not get confused by multiple runs', assertHelperOrder);126 });127 });128 describe('Async', function() {129 var val = 0;130 function incrementValueAsync() {131 return wait(function() {132 val++;133 });134 }135 function decrementValueAsync() {136 return wait(function() {137 val--;138 });139 }140 beforeAll(incrementValueAsync);141 beforeEach(incrementValueAsync);142 afterAll(decrementValueAsync);143 afterEach(decrementValueAsync);144 it('should have run async setup', function() {145 assert(val, 2);146 });147 it('should have run async teardown', function() {148 assert(val, 2);149 });150 });...
hooks2.js
Source:hooks2.js
1const memo = [];2describe("capture", () => {3 beforeAll(() => {4 memo.push("outer beforeAll 1");5 });6 afterAll(() => {7 memo.push("outer afterAll 1");8 });9 beforeAll(() => {10 memo.push("outer beforeAll 2");11 });12 afterAll(() => {13 memo.push("outer afterAll 2");14 });15 beforeEach(() => {16 memo.push("outer beforeEach 1");17 });18 afterEach(() => {19 memo.push("outer afterEach 1");20 });21 beforeEach(() => {22 memo.push("outer beforeEach 2");23 });24 afterEach(() => {25 memo.push("outer afterEach 2");26 });27 it("should run", () => {28 memo.push("first spec");29 });30 xit("should not run", () => {31 memo.push("second spec");32 });33 describe("suite", () => {34 beforeAll(() => {35 memo.push("inner beforeAll 1");36 });37 afterAll(() => {38 memo.push("inner afterAll 1");39 });40 beforeAll(() => {41 memo.push("inner beforeAll 2");42 });43 afterAll(() => {44 memo.push("inner afterAll 2");45 });46 beforeEach(() => {47 memo.push("inner beforeEach 1");48 });49 afterEach(() => {50 memo.push("inner afterEach 1");51 });52 beforeEach(() => {53 memo.push("inner beforeEach 2");54 });55 afterEach(() => {56 memo.push("inner afterEach 2");57 });58 it("should run", () => {59 memo.push("third spec");60 });61 xit("should not run", () => {62 memo.push("fourth spec");63 });64 describe("nested suite", () => {65 beforeAll(() => {66 memo.push("nested beforeAll 1");67 });68 afterAll(() => {69 memo.push("nested afterAll 1");70 });71 beforeAll(() => {72 memo.push("nested beforeAll 2");73 });74 afterAll(() => {75 memo.push("nested afterAll 2");76 });77 beforeEach(() => {78 memo.push("nested beforeEach 1");79 });80 afterEach(() => {81 memo.push("nested afterEach 1");82 });83 beforeEach(() => {84 memo.push("nested beforeEach 2");85 });...
cache.js
Source:cache.js
...16}17export default function (server, server2, server3) {18 describe('storage tarball cache test', () => {19 //more info #13120 beforeAll(function () {21 return server.addPackage(PKG_GH131);22 });23 beforeAll(function () {24 return server.putTarball(PKG_GH131, TARBALL, getBinary())25 .status(HTTP_STATUS.CREATED)26 .body_ok(/.*/);27 });28 beforeAll(function () {29 const pkg = require('../fixtures/package')(PKG_GH131);30 pkg.dist.shasum = crypto.createHash('sha1').update(getBinary()).digest('hex');31 return server.putVersion(PKG_GH131, '0.0.1', pkg)32 .status(HTTP_STATUS.CREATED)33 .body_ok(/published/);34 });35 beforeAll(function () {36 return server3.getPackage(PKG_GH131).status(HTTP_STATUS.OK);37 });38 beforeAll(function () {39 return server3.getTarball(PKG_GH131, TARBALL)40 .status(HTTP_STATUS.OK);41 });42 test('should be caching packages from uplink server1', () => {43 assert.equal(isCached(PKG_GH131, TARBALL), true);44 });45 beforeAll(function () {46 return server2.addPackage(PKG_GH1312);47 });48 beforeAll(function () {49 return server2.putTarball(PKG_GH1312, TARBALL, getBinary())50 .status(HTTP_STATUS.CREATED)51 .body_ok(/.*/);52 });53 beforeAll(function () {54 const pkg = require('../fixtures/package')(PKG_GH1312);55 pkg.dist.shasum = crypto.createHash('sha1').update(getBinary()).digest('hex');56 return server2.putVersion(PKG_GH1312, '0.0.1', pkg)57 .status(HTTP_STATUS.CREATED)58 .body_ok(/published/);59 });60 beforeAll(function () {61 return server3.getPackage(PKG_GH1312)62 .status(HTTP_STATUS.OK);63 });64 beforeAll(function () {65 return server3.getTarball(PKG_GH1312, TARBALL)66 .status(HTTP_STATUS.OK);67 });68 test('must not be caching packages from uplink server2', () => {69 assert.equal(isCached(PKG_GH1312, TARBALL), false);70 });71 });...
promiseBeforeAll.test.js
Source:promiseBeforeAll.test.js
...6 */7'use strict';8describe('promise beforeAll', () => {9 let flag;10 beforeAll(() =>11 new Promise((resolve) => {12 process.nextTick(resolve);13 }).then(() => {14 flag = 1;15 })16 );17 beforeAll(() => new Promise((resolve) => setTimeout(resolve, 10)), 500);18 // passing tests19 it('runs tests after beforeAll asynchronously completes', () => {20 expect(flag).toBe(1);21 });22 describe('with failing async', () => {23 // failing before hook24 beforeAll(() => new Promise((resolve) => setTimeout(resolve, 100)), 11);25 it('fails', () => {});26 });27 describe('done - with error thrown', () => {28 beforeAll((done) => {29 throw new Error('fail');30 done(); // eslint-disable-line31 });32 it('fails', () => {});33 });34 describe('done - with error called back', () => {35 beforeAll((done) => {36 done(new Error('fail'));37 });38 it('fails', () => {});39 });...
Using AI Code Generation
1const { strykerBeforeAll } = require('stryker-parent');2strykerBeforeAll();3const { strykerAfterAll } = require('stryker-parent');4strykerAfterAll();5const { strykerBeforeEach } = require('stryker-parent');6strykerBeforeEach();7const { strykerAfterEach } = require('stryker-parent');8strykerAfterEach();9const { strykerDescribe } = require('stryker-parent');10strykerDescribe();11const { strykerIt } = require('stryker-parent');12strykerIt();13const { strykerExpect } = require('stryker-parent');14strykerExpect();15const { strykerJest } = require('stryker-parent');16strykerJest();17const { strykerTest } = require('stryker-parent');18strykerTest();19const { strykerXdescribe } = require('stryker-parent');20strykerXdescribe();21const { strykerXit } = require('stryker-parent');22strykerXit();23const { strykerXtest } = require('stryker-parent');24strykerXtest();25const { strykerFit } = require('stryker-parent');26strykerFit();27const { strykerFdescribe } = require('stryker-parent');28strykerFdescribe();29const { strykerFtest } = require('stryker-parent');30strykerFtest();31const { strykerFail } = require('stryker-parent');32strykerFail();
Using AI Code Generation
1var stryker = require('stryker-parent');2stryker.beforeAll();3var stryker = require('stryker-parent');4stryker.afterAll();5var stryker = require('stryker-parent');6stryker.beforeAll();7var stryker = require('stryker-parent');8stryker.afterAll();9var stryker = require('stryker-parent');10stryker.beforeAll();11var stryker = require('stryker-parent');12stryker.afterAll();13var stryker = require('stryker-parent');14stryker.beforeAll();15var stryker = require('stryker-parent');16stryker.afterAll();17var stryker = require('stryker-parent');18stryker.beforeAll();19var stryker = require('stryker-parent');20stryker.afterAll();21var stryker = require('stryker-parent');22stryker.beforeAll();23var stryker = require('stryker-parent');24stryker.afterAll();25var stryker = require('stryker-parent');26stryker.beforeAll();27var stryker = require('stryker-parent');28stryker.afterAll();29var stryker = require('stryker-parent');30stryker.beforeAll();31var stryker = require('stryker-parent');32stryker.afterAll();
Using AI Code Generation
1const { beforeAll } = require('stryker-parent');2beforeAll();3const { afterAll } = require('stryker-parent');4afterAll();5const { beforeEach } = require('stryker-parent');6beforeEach();7const { afterEach } = require('stryker-parent');8afterEach();9const { custom } = require('stryker-parent');10custom();11const { custom } = require('stryker-parent');12custom('param1', 'param2');13const { custom } = require('stryker-parent');14const result = custom('param1', 'param2');15const { custom } = require('stryker-parent');16const result = custom('param1', 'param2');17const { custom } = require('stryker-parent');18const result = custom('param1', 'param2');19const { custom } = require('stryker-parent');20const result = custom('param1', 'param2');21const { custom } = require('stryker-parent');22const result = custom('param1', 'param2');23const { custom } = require('stryker-parent');24const result = custom('param1', 'param2');25const { custom } = require('stryker-parent');26const result = custom('param1', 'param2');27const { custom } = require('stryker-parent');28const result = custom('param1', 'param2');29const { custom } = require('stry
Using AI Code Generation
1require('stryker-parent').beforeAll();2require('stryker-parent').afterAll();3module.exports = function(config) {4 config.set({5 mochaOptions: {6 }7 });8};
Using AI Code Generation
1beforeAll(function(){2 console.log("beforeAll");3 beforeAll(function(){4 console.log("beforeAll");5 });6 beforeEach(function(){7 console.log("beforeEach");8 });9 afterEach(function(){10 console.log("afterEach");11 });12 afterAll(function(){13 console.log("afterAll");14 });15});16beforeEach(function(){17 console.log("beforeEach");18});19afterEach(function(){20 console.log("afterEach");21});22afterAll(function(){23 console.log("afterAll");24});25describe("test", function(){26 beforeAll(function(){27 console.log("beforeAll");28 });29 beforeEach(function(){30 console.log("beforeEach");31 });32 afterEach(function(){33 console.log("afterEach");34 });35 afterAll(function(){36 console.log("afterAll");37 });38 it("test", function(){39 console.log("it");40 });41});42it("test", function(){43 console.log("it");44});45afterAll(function(){46 console.log("afterAll");47});48afterEach(function(){49 console.log("afterEach");50});51afterAll(function(){52 console.log("afterAll");53});54afterEach(function(){55 console.log("afterEach");56});57afterAll(function(){58 console.log("afterAll");59});
Using AI Code Generation
1const { strykerParent } = require('stryker-parent');2describe('stryker-parent', () => {3 beforeAll(() => {4 strykerParent.beforeAll();5 });6 it('should have a test', () => {7 expect(true).toBe(true);8 });9});10const { strykerParent } = require('stryker-parent');11describe('stryker-parent', () => {12 afterAll(() => {13 strykerParent.afterAll();14 });15 it('should have a test', () => {16 expect(true).toBe(true);17 });18});19const { strykerParent } = require('stryker-parent');20describe('stryker-parent', () => {21 beforeEach(() => {22 strykerParent.beforeEach();23 });24 it('should have a test', () => {25 expect(true).toBe(true);26 });27});28const { strykerParent } = require('stryker-parent');29describe('stryker-parent', () => {30 afterEach(() => {31 strykerParent.afterEach();32 });33 it('should have a test', () => {34 expect(true).toBe(true);35 });36});37const { strykerParent } = require('stryker-parent');38describe('stryker-parent', () => {39 beforeAll(() => {40 strykerParent.beforeAll();41 });42 afterAll(() => {43 strykerParent.afterAll();44 });45 it('should have a test', () => {46 expect(true).toBe(true);47 });48});49const { strykerParent } = require('stryker-parent');50describe('stryker-parent', () => {51 beforeEach(() => {52 strykerParent.beforeEach();53 });54 afterEach(() => {55 strykerParent.afterEach();56 });57 it('should have a test', () => {58 expect(true).toBe(true);59 });60});61const { strykerParent } = require('stryker-parent');62describe('stryker-parent', () => {
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!