How to use classify method in fast-check-monorepo

Best JavaScript code snippet using fast-check-monorepo

classify.data.js

Source:classify.data.js Github

copy

Full Screen

1export default[2 {3 "name": "女装",4 "foods": [5 {6 "name": "A字裙",7 "key": "A字裙",8 "icon": "https://cdn.uviewui.com/uview/common/classify/1/1.jpg",9 "cat": 1010 },11 {12 "name": "T恤",13 "key": "T恤",14 "icon": "https://cdn.uviewui.com/uview/common/classify/1/2.jpg",15 "cat": 1016 },17 {18 "name": "半身裙",19 "key": "半身裙",20 "icon": "https://cdn.uviewui.com/uview/common/classify/1/3.jpg",21 "cat": 1022 },23 {24 "name": "衬衫",25 "key": "衬衫",26 "icon": "https://cdn.uviewui.com/uview/common/classify/1/4.jpg",27 "cat": 1028 },29 {30 "name": "短裙",31 "key": "短裙",32 "icon": "https://cdn.uviewui.com/uview/common/classify/1/5.jpg",33 "cat": 1034 },35 {36 "name": "阔腿裤",37 "key": "阔腿裤",38 "icon": "https://cdn.uviewui.com/uview/common/classify/1/6.jpg",39 "cat": 1040 },41 {42 "name": "连衣裙",43 "key": "连衣裙",44 "icon": "https://cdn.uviewui.com/uview/common/classify/1/7.jpg",45 "cat": 1046 },47 {48 "name": "妈妈装",49 "key": "妈妈装",50 "icon": "https://cdn.uviewui.com/uview/common/classify/1/8.jpg",51 "cat": 1052 },53 {54 "name": "牛仔裤",55 "key": "牛仔裤",56 "icon": "https://cdn.uviewui.com/uview/common/classify/1/9.jpg",57 "cat": 1058 },59 {60 "name": "情侣装",61 "key": "情侣装",62 "icon": "https://cdn.uviewui.com/uview/common/classify/1/10.jpg",63 "cat": 1064 },65 {66 "name": "休闲裤",67 "key": "休闲裤",68 "icon": "https://cdn.uviewui.com/uview/common/classify/1/11.jpg",69 "cat": 1070 },71 {72 "name": "雪纺衫",73 "key": "雪纺衫",74 "icon": "https://cdn.uviewui.com/uview/common/classify/1/12.jpg",75 "cat": 1076 },77 {78 "name": "防晒衣",79 "key": "防晒衣",80 "icon": "https://cdn.uviewui.com/uview/common/classify/1/13.jpg",81 "cat": 1082 },83 {84 "name": "礼服/婚纱",85 "key": "礼服婚纱",86 "icon": "https://cdn.uviewui.com/uview/common/classify/1/14.jpg",87 "cat": 1088 }89 ]90 },91 {92 "name": "美食",93 "foods": [94 {95 "name": "火锅",96 "key": "火锅",97 "icon": "https://cdn.uviewui.com/uview/common/classify/2/1.jpg",98 "cat": 699 },100 {101 "name": "糕点饼干",102 "key": "糕点饼干",103 "icon": "https://cdn.uviewui.com/uview/common/classify/2/2.jpg",104 "cat": 6105 },106 {107 "name": "坚果果干",108 "key": "坚果果干",109 "icon": "https://cdn.uviewui.com/uview/common/classify/2/3.jpg",110 "cat": 6111 },112 {113 "name": "酒类",114 "key": "酒类",115 "icon": "https://cdn.uviewui.com/uview/common/classify/2/4.jpg",116 "cat": 6117 },118 {119 "name": "辣条",120 "key": "辣条",121 "icon": "https://cdn.uviewui.com/uview/common/classify/2/5.jpg",122 "cat": 6123 },124 {125 "name": "大礼包",126 "key": "大礼包",127 "icon": "https://cdn.uviewui.com/uview/common/classify/2/6.jpg",128 "cat": 6129 },130 {131 "name": "精品茗茶",132 "key": "茶",133 "icon": "https://cdn.uviewui.com/uview/common/classify/2/7.jpg",134 "cat": 6135 },136 {137 "name": "休闲食品",138 "key": "休闲食品",139 "icon": "https://cdn.uviewui.com/uview/common/classify/2/8.jpg",140 "cat": 6141 },142 {143 "name": "糖果巧克力",144 "key": "糖果巧克力",145 "icon": "https://cdn.uviewui.com/uview/common/classify/2/9.jpg",146 "cat": 6147 },148 {149 "name": "方便速食",150 "key": "方便速食",151 "icon": "https://cdn.uviewui.com/uview/common/classify/2/10.jpg",152 "cat": 6153 },154 {155 "name": "营养代餐",156 "key": "营养代餐",157 "icon": "https://cdn.uviewui.com/uview/common/classify/2/11.jpg",158 "cat": 6159 },160 {161 "name": "粮油副食",162 "key": "粮油",163 "icon": "https://cdn.uviewui.com/uview/common/classify/2/12.jpg",164 "cat": 6165 },166 {167 "name": "生鲜水果",168 "key": "水果",169 "icon": "https://cdn.uviewui.com/uview/common/classify/2/13.jpg",170 "cat": 6171 },172 {173 "name": "饮品",174 "key": "饮品",175 "icon": "https://cdn.uviewui.com/uview/common/classify/2/14.jpg",176 "cat": 6177 }178 ]179 },180 {181 "name": "美妆",182 "foods": [183 {184 "name": "化妆刷",185 "key": "化妆刷",186 "icon": "https://cdn.uviewui.com/uview/common/classify/3/1.jpg",187 "cat": 3188 },189 {190 "name": "粉底",191 "key": "粉底",192 "icon": "https://cdn.uviewui.com/uview/common/classify/3/2.jpg",193 "cat": 3194 },195 {196 "name": "洗发护发",197 "key": "洗发护发",198 "icon": "https://cdn.uviewui.com/uview/common/classify/3/3.jpg",199 "cat": 3200 },201 {202 "name": "美容工具",203 "key": "美容工具",204 "icon": "https://cdn.uviewui.com/uview/common/classify/3/4.jpg",205 "cat": 3206 },207 {208 "name": "眼部护理",209 "key": "眼部护理",210 "icon": "https://cdn.uviewui.com/uview/common/classify/3/5.jpg",211 "cat": 3212 },213 {214 "name": "眉妆",215 "key": "眉妆",216 "icon": "https://cdn.uviewui.com/uview/common/classify/3/6.jpg",217 "cat": 3218 },219 {220 "name": "卸妆品",221 "key": "卸妆品",222 "icon": "https://cdn.uviewui.com/uview/common/classify/3/7.jpg",223 "cat": 3224 },225 {226 "name": "基础护肤",227 "key": "基础护肤",228 "icon": "https://cdn.uviewui.com/uview/common/classify/3/8.jpg",229 "cat": 3230 },231 {232 "name": "眼妆",233 "key": "眼妆",234 "icon": "https://cdn.uviewui.com/uview/common/classify/3/9.jpg",235 "cat": 3236 },237 {238 "name": "唇妆",239 "key": "唇妆",240 "icon": "https://cdn.uviewui.com/uview/common/classify/3/10.jpg",241 "cat": 3242 },243 {244 "name": "面膜",245 "key": "面膜",246 "icon": "https://cdn.uviewui.com/uview/common/classify/3/11.jpg",247 "cat": 3248 },249 {250 "name": "沐浴用品",251 "key": "沐浴用品",252 "icon": "https://cdn.uviewui.com/uview/common/classify/3/12.jpg",253 "cat": 3254 },255 {256 "name": "护肤套装",257 "key": "护肤套装",258 "icon": "https://cdn.uviewui.com/uview/common/classify/3/13.jpg",259 "cat": 3260 },261 {262 "name": "防晒品",263 "key": "防晒品",264 "icon": "https://cdn.uviewui.com/uview/common/classify/3/14.jpg",265 "cat": 3266 },267 {268 "name": "美甲",269 "key": "美甲",270 "icon": "https://cdn.uviewui.com/uview/common/classify/3/15.jpg",271 "cat": 3272 }273 ]274 },275 {276 "name": "居家日用",277 "foods": [278 {279 "name": "垃圾袋",280 "key": "垃圾袋",281 "icon": "https://cdn.uviewui.com/uview/common/classify/4/1.jpg",282 "cat": 4283 },284 {285 "name": "纸巾",286 "key": "纸巾",287 "icon": "https://cdn.uviewui.com/uview/common/classify/4/2.jpg",288 "cat": 4289 },290 {291 "name": "驱蚊用品",292 "key": "驱蚊用品",293 "icon": "https://cdn.uviewui.com/uview/common/classify/4/3.jpg",294 "cat": 4295 },296 {297 "name": "收纳神器",298 "key": "收纳神器",299 "icon": "https://cdn.uviewui.com/uview/common/classify/4/4.jpg",300 "cat": 4301 },302 {303 "name": "厨房用品",304 "key": "厨房用品",305 "icon": "https://cdn.uviewui.com/uview/common/classify/4/5.jpg",306 "cat": 4307 },308 {309 "name": "厨房烹饪",310 "key": "烹饪",311 "icon": "https://cdn.uviewui.com/uview/common/classify/4/6.jpg",312 "cat": 4313 },314 {315 "name": "衣物晾晒",316 "key": "衣物晾晒",317 "icon": "https://cdn.uviewui.com/uview/common/classify/4/7.jpg",318 "cat": 4319 },320 {321 "name": "衣物护理",322 "key": "衣物护理",323 "icon": "https://cdn.uviewui.com/uview/common/classify/4/8.jpg",324 "cat": 4325 },326 {327 "name": "宠物用品",328 "key": "宠物用品",329 "icon": "https://cdn.uviewui.com/uview/common/classify/4/9.jpg",330 "cat": 4331 },332 {333 "name": "医药保健",334 "key": "医药",335 "icon": "https://cdn.uviewui.com/uview/common/classify/4/10.jpg",336 "cat": 4337 },338 {339 "name": "日用百货",340 "key": "百货",341 "icon": "https://cdn.uviewui.com/uview/common/classify/4/11.jpg",342 "cat": 4343 },344 {345 "name": "清洁用品",346 "key": "清洁",347 "icon": "https://cdn.uviewui.com/uview/common/classify/4/12.jpg",348 "cat": 4349 },350 {351 "name": "绿植园艺",352 "key": "绿植",353 "icon": "https://cdn.uviewui.com/uview/common/classify/4/13.jpg",354 "cat": 4355 }356 ]357 },358 {359 "name": "男装",360 "foods": [361 {362 "name": "爸爸装",363 "key": "爸爸装",364 "icon": "https://cdn.uviewui.com/uview/common/classify/5/1.jpg",365 "cat": 12366 },367 {368 "name": "牛仔裤",369 "key": "牛仔裤",370 "icon": "https://cdn.uviewui.com/uview/common/classify/5/2.jpg",371 "cat": 12372 },373 {374 "name": "衬衫",375 "key": "衬衫",376 "icon": "https://cdn.uviewui.com/uview/common/classify/5/3.jpg",377 "cat": 12378 },379 {380 "name": "休闲裤",381 "key": "休闲裤",382 "icon": "https://cdn.uviewui.com/uview/common/classify/5/4.jpg",383 "cat": 12384 },385 {386 "name": "外套",387 "key": "外套",388 "icon": "https://cdn.uviewui.com/uview/common/classify/5/5.jpg",389 "cat": 12390 },391 {392 "name": "T恤",393 "key": "T恤",394 "icon": "https://cdn.uviewui.com/uview/common/classify/5/6.jpg",395 "cat": 12396 },397 {398 "name": "套装",399 "key": "套装",400 "icon": "https://cdn.uviewui.com/uview/common/classify/5/7.jpg",401 "cat": 12402 },403 {404 "name": "运动裤",405 "key": "运动裤",406 "icon": "https://cdn.uviewui.com/uview/common/classify/5/8.jpg",407 "cat": 12408 },409 {410 "name": "马甲/背心",411 "key": "马甲背心",412 "icon": "https://cdn.uviewui.com/uview/common/classify/5/9.jpg",413 "cat": 12414 },415 {416 "name": "POLO衫",417 "key": "POLO衫",418 "icon": "https://cdn.uviewui.com/uview/common/classify/5/10.jpg",419 "cat": 12420 },421 {422 "name": "商务装",423 "key": "商务装",424 "icon": "https://cdn.uviewui.com/uview/common/classify/5/11.jpg",425 "cat": 12426 }427 ]428 },429 {430 "name": "鞋品",431 "foods": [432 {433 "name": "单鞋",434 "key": "单鞋",435 "icon": "https://cdn.uviewui.com/uview/common/classify/6/1.jpg",436 "cat": 5437 },438 {439 "name": "皮鞋",440 "key": "皮鞋",441 "icon": "https://cdn.uviewui.com/uview/common/classify/6/2.jpg",442 "cat": 5443 },444 {445 "name": "帆布鞋",446 "key": "帆布鞋",447 "icon": "https://cdn.uviewui.com/uview/common/classify/6/3.jpg",448 "cat": 5449 },450 {451 "name": "北京老布鞋",452 "key": "北京老布鞋",453 "icon": "https://cdn.uviewui.com/uview/common/classify/6/4.jpg",454 "cat": 5455 },456 {457 "name": "运动鞋",458 "key": "运动鞋",459 "icon": "https://cdn.uviewui.com/uview/common/classify/6/5.jpg",460 "cat": 5461 },462 {463 "name": "拖鞋",464 "key": "拖鞋",465 "icon": "https://cdn.uviewui.com/uview/common/classify/6/6.jpg",466 "cat": 5467 },468 {469 "name": "凉鞋",470 "key": "凉鞋",471 "icon": "https://cdn.uviewui.com/uview/common/classify/6/7.jpg",472 "cat": 5473 },474 {475 "name": "休闲鞋",476 "key": "休闲鞋",477 "icon": "https://cdn.uviewui.com/uview/common/classify/6/8.jpg",478 "cat": 5479 },480 {481 "name": "高跟鞋",482 "key": "高跟鞋",483 "icon": "https://cdn.uviewui.com/uview/common/classify/6/9.jpg",484 "cat": 5485 },486 {487 "name": "老人鞋",488 "key": "老人鞋",489 "icon": "https://cdn.uviewui.com/uview/common/classify/6/10.jpg",490 "cat": 5491 },492 {493 "name": "懒人鞋",494 "key": "懒人鞋",495 "icon": "https://cdn.uviewui.com/uview/common/classify/6/11.jpg",496 "cat": 5497 }498 ]499 },500 {501 "name": "数码家电",502 "foods": [503 {504 "name": "数据线",505 "key": "数据线",506 "icon": "https://cdn.uviewui.com/uview/common/classify/7/1.jpg",507 "cat": 8508 },509 {510 "name": "耳机",511 "key": "耳机",512 "icon": "https://cdn.uviewui.com/uview/common/classify/7/2.jpg",513 "cat": 8514 },515 {516 "name": "生活家电",517 "key": "家电",518 "icon": "https://cdn.uviewui.com/uview/common/classify/7/3.jpg",519 "cat": 8520 },521 {522 "name": "电风扇",523 "key": "电风扇",524 "icon": "https://cdn.uviewui.com/uview/common/classify/7/4.jpg",525 "cat": 8526 },527 {528 "name": "电吹风",529 "key": "电吹风",530 "icon": "https://cdn.uviewui.com/uview/common/classify/7/5.jpg",531 "cat": 8532 },533 {534 "name": "手机壳",535 "key": "手机壳",536 "icon": "https://cdn.uviewui.com/uview/common/classify/7/6.jpg",537 "cat": 8538 },539 {540 "name": "榨汁机",541 "key": "榨汁机",542 "icon": "https://cdn.uviewui.com/uview/common/classify/7/7.jpg",543 "cat": 8544 },545 {546 "name": "小家电",547 "key": "小家电",548 "icon": "https://cdn.uviewui.com/uview/common/classify/7/8.jpg",549 "cat": 8550 },551 {552 "name": "数码电子",553 "key": "数码",554 "icon": "https://cdn.uviewui.com/uview/common/classify/7/9.jpg",555 "cat": 8556 },557 {558 "name": "电饭锅",559 "key": "电饭锅",560 "icon": "https://cdn.uviewui.com/uview/common/classify/7/10.jpg",561 "cat": 8562 },563 {564 "name": "手机支架",565 "key": "手机支架",566 "icon": "https://cdn.uviewui.com/uview/common/classify/7/11.jpg",567 "cat": 8568 },569 {570 "name": "剃须刀",571 "key": "剃须刀",572 "icon": "https://cdn.uviewui.com/uview/common/classify/7/12.jpg",573 "cat": 8574 },575 {576 "name": "充电宝",577 "key": "充电宝",578 "icon": "https://cdn.uviewui.com/uview/common/classify/7/13.jpg",579 "cat": 8580 },581 {582 "name": "手机配件",583 "key": "手机配件",584 "icon": "https://cdn.uviewui.com/uview/common/classify/7/14.jpg",585 "cat": 8586 }587 ]588 },589 {590 "name": "母婴",591 "foods": [592 {593 "name": "婴童服饰",594 "key": "衣服",595 "icon": "https://cdn.uviewui.com/uview/common/classify/8/1.jpg",596 "cat": 2 597 },598 {599 "name": "玩具乐器",600 "key": "玩具乐器",601 "icon": "https://cdn.uviewui.com/uview/common/classify/8/2.jpg",602 "cat": 2 603 },604 {605 "name": "尿不湿",606 "key": "尿不湿",607 "icon": "https://cdn.uviewui.com/uview/common/classify/8/3.jpg",608 "cat": 2 609 },610 {611 "name": "安抚牙胶",612 "key": "安抚牙胶",613 "icon": "https://cdn.uviewui.com/uview/common/classify/8/4.jpg",614 "cat": 2 615 },616 {617 "name": "奶瓶奶嘴",618 "key": "奶瓶奶嘴",619 "icon": "https://cdn.uviewui.com/uview/common/classify/8/5.jpg",620 "cat": 2 621 },622 {623 "name": "孕妈用品",624 "key": "孕妈用品",625 "icon": "https://cdn.uviewui.com/uview/common/classify/8/6.jpg",626 "cat": 2 627 },628 {629 "name": "宝宝用品",630 "key": "宝宝用品",631 "icon": "https://cdn.uviewui.com/uview/common/classify/8/7.jpg",632 "cat": 2 633 },634 {635 "name": "婴童湿巾",636 "key": "湿巾",637 "icon": "https://cdn.uviewui.com/uview/common/classify/8/8.jpg",638 "cat": 2 639 },640 {641 "name": "喂养洗护",642 "key": "洗护",643 "icon": "https://cdn.uviewui.com/uview/common/classify/8/9.jpg",644 "cat": 2 645 },646 {647 "name": "婴童鞋靴",648 "key": "童鞋",649 "icon": "https://cdn.uviewui.com/uview/common/classify/8/10.jpg",650 "cat": 2 651 },652 {653 "name": "口水巾",654 "key": "口水巾",655 "icon": "https://cdn.uviewui.com/uview/common/classify/8/11.jpg",656 "cat": 2 657 },658 {659 "name": "营养辅食",660 "key": "营养",661 "icon": "https://cdn.uviewui.com/uview/common/classify/8/12.jpg",662 "cat": 2 663 },664 {665 "name": "婴幼书籍",666 "key": "书籍",667 "icon": "https://cdn.uviewui.com/uview/common/classify/8/13.jpg",668 "cat": 2 669 },670 {671 "name": "婴儿车",672 "key": "婴儿车",673 "icon": "https://cdn.uviewui.com/uview/common/classify/8/14.jpg",674 "cat": 2 675 }676 ]677 },678 {679 "name": "箱包",680 "foods": [681 {682 "name": "单肩包",683 "key": "单肩包",684 "icon": "https://cdn.uviewui.com/uview/common/classify/9/1.jpg",685 "cat": 0686 },687 {688 "name": "斜挎包",689 "key": "斜挎包",690 "icon": "https://cdn.uviewui.com/uview/common/classify/9/2.jpg",691 "cat": 0692 },693 {694 "name": "女包",695 "key": "女包",696 "icon": "https://cdn.uviewui.com/uview/common/classify/9/3.jpg",697 "cat": 0698 },699 {700 "name": "男包",701 "key": "男包",702 "icon": "https://cdn.uviewui.com/uview/common/classify/9/4.jpg",703 "cat": 0704 },705 {706 "name": "双肩包",707 "key": "双肩包",708 "icon": "https://cdn.uviewui.com/uview/common/classify/9/5.jpg",709 "cat": 0710 },711 {712 "name": "小方包",713 "key": "小方包",714 "icon": "https://cdn.uviewui.com/uview/common/classify/9/6.jpg",715 "cat": 0716 },717 {718 "name": "钱包",719 "key": "钱包",720 "icon": "https://cdn.uviewui.com/uview/common/classify/9/7.jpg",721 "cat": 0722 },723 {724 "name": "旅行箱包",725 "key": "旅行箱包",726 "icon": "https://cdn.uviewui.com/uview/common/classify/9/8.jpg",727 "cat": 0728 },729 {730 "name": "零钱包",731 "key": "零钱包",732 "icon": "https://cdn.uviewui.com/uview/common/classify/9/9.jpg",733 "cat": 0734 },735 {736 "name": "手提包",737 "key": "手提包",738 "icon": "https://cdn.uviewui.com/uview/common/classify/9/10.jpg",739 "cat": 0740 },741 {742 "name": "胸包",743 "key": "胸包",744 "icon": "https://cdn.uviewui.com/uview/common/classify/9/11.jpg",745 "cat": 0746 }747 ]748 },749 {750 "name": "内衣",751 "foods": [752 {753 "name": "袜子",754 "key": "袜子",755 "icon": "https://cdn.uviewui.com/uview/common/classify/10/1.jpg",756 "cat": 11757 },758 {759 "name": "吊带背心",760 "key": "吊带背心",761 "icon": "https://cdn.uviewui.com/uview/common/classify/10/2.jpg",762 "cat": 11763 },764 {765 "name": "抹胸",766 "key": "抹胸",767 "icon": "https://cdn.uviewui.com/uview/common/classify/10/3.jpg",768 "cat": 11769 },770 {771 "name": "内裤",772 "key": "内裤",773 "icon": "https://cdn.uviewui.com/uview/common/classify/10/4.jpg",774 "cat": 11775 },776 {777 "name": "文胸",778 "key": "文胸",779 "icon": "https://cdn.uviewui.com/uview/common/classify/10/5.jpg",780 "cat": 11781 },782 {783 "name": "文胸套装",784 "key": "文胸套装",785 "icon": "https://cdn.uviewui.com/uview/common/classify/10/6.jpg",786 "cat": 11787 },788 {789 "name": "打底塑身",790 "key": "打底塑身",791 "icon": "https://cdn.uviewui.com/uview/common/classify/10/7.jpg",792 "cat": 11793 },794 {795 "name": "家居服",796 "key": "家居服",797 "icon": "https://cdn.uviewui.com/uview/common/classify/10/8.jpg",798 "cat": 11799 },800 {801 "name": "船袜",802 "key": "船袜",803 "icon": "https://cdn.uviewui.com/uview/common/classify/10/9.jpg",804 "cat": 11805 },806 {807 "name": "情侣睡衣",808 "key": "情侣睡衣",809 "icon": "https://cdn.uviewui.com/uview/common/classify/10/10.jpg",810 "cat": 11811 },812 {813 "name": "丝袜",814 "key": "丝袜",815 "icon": "https://cdn.uviewui.com/uview/common/classify/10/11.jpg",816 "cat": 11817 }818 ]819 },820 {821 "name": "文娱车品",822 "foods": [823 {824 "name": "车市车品",825 "key": "车市车品",826 "icon": "https://cdn.uviewui.com/uview/common/classify/11/1.jpg",827 "cat": 7828 },829 {830 "name": "办公文具",831 "key": "办公文具",832 "icon": "https://cdn.uviewui.com/uview/common/classify/11/2.jpg",833 "cat": 7834 },835 {836 "name": "考试必备",837 "key": "考试必备",838 "icon": "https://cdn.uviewui.com/uview/common/classify/11/3.jpg",839 "cat": 7840 },841 {842 "name": "笔记本",843 "key": "笔记本",844 "icon": "https://cdn.uviewui.com/uview/common/classify/11/4.jpg",845 "cat": 7846 },847 {848 "name": "艺术礼品",849 "key": "礼品",850 "icon": "https://cdn.uviewui.com/uview/common/classify/11/5.jpg",851 "cat": 7852 },853 {854 "name": "书写工具",855 "key": "书写工具",856 "icon": "https://cdn.uviewui.com/uview/common/classify/11/6.jpg",857 "cat": 7858 },859 {860 "name": "车载电器",861 "key": "车载电器",862 "icon": "https://cdn.uviewui.com/uview/common/classify/11/7.jpg",863 "cat": 7864 },865 {866 "name": "图书音像",867 "key": "图书音像",868 "icon": "https://cdn.uviewui.com/uview/common/classify/11/8.jpg",869 "cat": 7870 },871 {872 "name": "画具画材",873 "key": "画具画材",874 "icon": "https://cdn.uviewui.com/uview/common/classify/11/9.jpg",875 "cat": 7876 }877 ]878 },879 {880 "name": "配饰",881 "foods": [882 {883 "name": "太阳镜",884 "key": "太阳镜",885 "icon": "https://cdn.uviewui.com/uview/common/classify/12/1.jpg",886 "cat": 0887 },888 {889 "name": "皮带",890 "key": "皮带",891 "icon": "https://cdn.uviewui.com/uview/common/classify/12/2.jpg",892 "cat": 0893 },894 {895 "name": "棒球帽",896 "key": "棒球帽",897 "icon": "https://cdn.uviewui.com/uview/common/classify/12/3.jpg",898 "cat": 0899 },900 {901 "name": "手表",902 "key": "手表",903 "icon": "https://cdn.uviewui.com/uview/common/classify/12/4.jpg",904 "cat": 0905 },906 {907 "name": "发饰",908 "key": "发饰",909 "icon": "https://cdn.uviewui.com/uview/common/classify/12/5.jpg",910 "cat": 0911 },912 {913 "name": "项链",914 "key": "项链",915 "icon": "https://cdn.uviewui.com/uview/common/classify/12/6.jpg",916 "cat": 0917 },918 {919 "name": "手饰",920 "key": "手饰",921 "icon": "https://cdn.uviewui.com/uview/common/classify/12/7.jpg",922 "cat": 0923 },924 {925 "name": "耳环",926 "key": "耳环",927 "icon": "https://cdn.uviewui.com/uview/common/classify/12/8.jpg",928 "cat": 0929 },930 {931 "name": "帽子丝巾",932 "key": "帽子丝巾",933 "icon": "https://cdn.uviewui.com/uview/common/classify/12/9.jpg",934 "cat": 0935 },936 {937 "name": "眼镜墨镜",938 "key": "眼镜墨镜",939 "icon": "https://cdn.uviewui.com/uview/common/classify/12/10.jpg",940 "cat": 0941 },942 {943 "name": "发带发箍",944 "key": "发带发箍",945 "icon": "https://cdn.uviewui.com/uview/common/classify/12/11.jpg",946 "cat": 0947 }948 ]949 },950 {951 "name": "家装家纺",952 "foods": [953 {954 "name": "家居饰品",955 "key": "家居饰品",956 "icon": "https://cdn.uviewui.com/uview/common/classify/13/1.jpg",957 "cat": 0958 },959 {960 "name": "凉席",961 "key": "凉席",962 "icon": "https://cdn.uviewui.com/uview/common/classify/13/2.jpg",963 "cat": 0964 },965 {966 "name": "背枕靠枕",967 "key": "靠枕",968 "icon": "https://cdn.uviewui.com/uview/common/classify/13/3.jpg",969 "cat": 0970 },971 {972 "name": "床上用品",973 "key": "床上用品",974 "icon": "https://cdn.uviewui.com/uview/common/classify/13/4.jpg",975 "cat": 0976 },977 {978 "name": "摆件",979 "key": "摆件",980 "icon": "https://cdn.uviewui.com/uview/common/classify/13/5.jpg",981 "cat": 0982 },983 {984 "name": "四件套",985 "key": "四件套",986 "icon": "https://cdn.uviewui.com/uview/common/classify/13/6.jpg",987 "cat": 0988 },989 {990 "name": "装饰品",991 "key": "装饰品",992 "icon": "https://cdn.uviewui.com/uview/common/classify/13/7.jpg",993 "cat": 0994 },995 {996 "name": "卫浴用品",997 "key": "卫浴",998 "icon": "https://cdn.uviewui.com/uview/common/classify/13/8.jpg",999 "cat": 01000 },1001 {1002 "name": "家居家装",1003 "key": "家具",1004 "icon": "https://cdn.uviewui.com/uview/common/classify/13/9.jpg",1005 "cat": 01006 },1007 {1008 "name": "蚊帐",1009 "key": "蚊帐",1010 "icon": "https://cdn.uviewui.com/uview/common/classify/13/10.jpg",1011 "cat": 01012 },1013 {1014 "name": "墙纸贴纸",1015 "key": "墙纸",1016 "icon": "https://cdn.uviewui.com/uview/common/classify/13/11.jpg",1017 "cat": 01018 },1019 {1020 "name": "空调被",1021 "key": "空调被",1022 "icon": "https://cdn.uviewui.com/uview/common/classify/13/12.jpg",1023 "cat": 01024 }1025 ]1026 },1027 {1028 "name": "户外运动",1029 "foods": [1030 {1031 "name": "游泳装备",1032 "key": "游泳",1033 "icon": "https://cdn.uviewui.com/uview/common/classify/14/1.jpg",1034 "cat": 01035 },1036 {1037 "name": "泳镜",1038 "key": "泳镜",1039 "icon": "https://cdn.uviewui.com/uview/common/classify/14/2.jpg",1040 "cat": 01041 },1042 {1043 "name": "户外装备",1044 "key": "户外",1045 "icon": "https://cdn.uviewui.com/uview/common/classify/14/3.jpg",1046 "cat": 01047 },1048 {1049 "name": "健身服饰",1050 "key": "健身",1051 "icon": "https://cdn.uviewui.com/uview/common/classify/14/4.jpg",1052 "cat": 01053 },1054 {1055 "name": "泳衣",1056 "key": "泳衣",1057 "icon": "https://cdn.uviewui.com/uview/common/classify/14/5.jpg",1058 "cat": 01059 },1060 {1061 "name": "瑜伽垫",1062 "key": "瑜伽垫",1063 "icon": "https://cdn.uviewui.com/uview/common/classify/14/6.jpg",1064 "cat": 01065 },1066 {1067 "name": "瑜伽用品",1068 "key": "瑜伽",1069 "icon": "https://cdn.uviewui.com/uview/common/classify/14/7.jpg",1070 "cat": 01071 },1072 {1073 "name": "健身装备",1074 "key": "健身",1075 "icon": "https://cdn.uviewui.com/uview/common/classify/14/8.jpg",1076 "cat": 01077 },1078 {1079 "name": "球迷用品",1080 "key": "球迷",1081 "icon": "https://cdn.uviewui.com/uview/common/classify/14/9.jpg",1082 "cat": 01083 }1084 ]1085 }...

Full Screen

Full Screen

keywords-and-reserved_words.js

Source:keywords-and-reserved_words.js Github

copy

Full Screen

1description(2"This test verifies that keywords and reserved words match those specified in ES5 section 7.6."3);4function isKeyword(x)5{6 try {7 eval("var "+x+";");8 } catch(e) {9 return true;10 }11 12 return false;13}14function isStrictKeyword(x)15{16 try {17 eval("'use strict'; var "+x+";");18 } catch(e) {19 return true;20 }21 22 return false;23}24function classifyIdentifier(x)25{26 if (isKeyword(x)) {27 // All non-strict keywords are also keywords in strict code.28 if (!isStrictKeyword(x))29 return "ERROR";30 return "keyword";31 }32 // Check for strict mode future reserved words.33 if (isStrictKeyword(x))34 return "strict";35 return "identifier";36}37// Not keywords - these are all just identifiers.38shouldBe('classifyIdentifier("x")', '"identifier"');39shouldBe('classifyIdentifier("id")', '"identifier"');40shouldBe('classifyIdentifier("identifier")', '"identifier"');41shouldBe('classifyIdentifier("keyword")', '"identifier"');42shouldBe('classifyIdentifier("strict")', '"identifier"');43shouldBe('classifyIdentifier("use")', '"identifier"');44// These are identifiers that we used to treat as keywords!45shouldBe('classifyIdentifier("abstract")', '"identifier"');46shouldBe('classifyIdentifier("boolean")', '"identifier"');47shouldBe('classifyIdentifier("byte")', '"identifier"');48shouldBe('classifyIdentifier("char")', '"identifier"');49shouldBe('classifyIdentifier("double")', '"identifier"');50shouldBe('classifyIdentifier("final")', '"identifier"');51shouldBe('classifyIdentifier("float")', '"identifier"');52shouldBe('classifyIdentifier("goto")', '"identifier"');53shouldBe('classifyIdentifier("int")', '"identifier"');54shouldBe('classifyIdentifier("long")', '"identifier"');55shouldBe('classifyIdentifier("native")', '"identifier"');56shouldBe('classifyIdentifier("short")', '"identifier"');57shouldBe('classifyIdentifier("synchronized")', '"identifier"');58shouldBe('classifyIdentifier("throws")', '"identifier"');59shouldBe('classifyIdentifier("transient")', '"identifier"');60shouldBe('classifyIdentifier("volatile")', '"identifier"');61// Keywords.62shouldBe('classifyIdentifier("break")', '"keyword"');63shouldBe('classifyIdentifier("case")', '"keyword"');64shouldBe('classifyIdentifier("catch")', '"keyword"');65shouldBe('classifyIdentifier("continue")', '"keyword"');66shouldBe('classifyIdentifier("debugger")', '"keyword"');67shouldBe('classifyIdentifier("default")', '"keyword"');68shouldBe('classifyIdentifier("delete")', '"keyword"');69shouldBe('classifyIdentifier("do")', '"keyword"');70shouldBe('classifyIdentifier("else")', '"keyword"');71shouldBe('classifyIdentifier("finally")', '"keyword"');72shouldBe('classifyIdentifier("for")', '"keyword"');73shouldBe('classifyIdentifier("function")', '"keyword"');74shouldBe('classifyIdentifier("if")', '"keyword"');75shouldBe('classifyIdentifier("in")', '"keyword"');76shouldBe('classifyIdentifier("instanceof")', '"keyword"');77shouldBe('classifyIdentifier("new")', '"keyword"');78shouldBe('classifyIdentifier("return")', '"keyword"');79shouldBe('classifyIdentifier("switch")', '"keyword"');80shouldBe('classifyIdentifier("this")', '"keyword"');81shouldBe('classifyIdentifier("throw")', '"keyword"');82shouldBe('classifyIdentifier("try")', '"keyword"');83shouldBe('classifyIdentifier("typeof")', '"keyword"');84shouldBe('classifyIdentifier("var")', '"keyword"');85shouldBe('classifyIdentifier("void")', '"keyword"');86shouldBe('classifyIdentifier("while")', '"keyword"');87shouldBe('classifyIdentifier("with")', '"keyword"');88// Technically these are "Future Reserved Words"!89shouldBe('classifyIdentifier("class")', '"keyword"');90shouldBe('classifyIdentifier("const")', '"keyword"');91shouldBe('classifyIdentifier("enum")', '"keyword"');92shouldBe('classifyIdentifier("export")', '"keyword"');93shouldBe('classifyIdentifier("extends")', '"keyword"');94shouldBe('classifyIdentifier("import")', '"keyword"');95shouldBe('classifyIdentifier("super")', '"keyword"');96// Future Reserved Words, in strict mode only.97shouldBe('classifyIdentifier("implements")', '"strict"');98shouldBe('classifyIdentifier("interface")', '"strict"');99shouldBe('classifyIdentifier("let")', '"strict"');100shouldBe('classifyIdentifier("package")', '"strict"');101shouldBe('classifyIdentifier("private")', '"strict"');102shouldBe('classifyIdentifier("protected")', '"strict"');103shouldBe('classifyIdentifier("public")', '"strict"');104shouldBe('classifyIdentifier("static")', '"strict"');...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const { classify } = require('fast-check');3const { generate } = require('fast-check');4const { sample } = require('fast-check');5const { assert } = require('fast-check');6const fc = require('fast-check');7const { classify } = require('fast-check');8const { generate } = require('fast-check');9const { sample } = require('fast-check');10const { assert } = require('fast-check');11const fc = require('fast-check');12const { classify } = require('fast-check');13const { generate } = require('fast-check');14const { sample } = require('fast-check');15const { assert } = require('fast-check');16const fc = require('fast-check');17const { classify } = require('fast-check');18const { generate } = require('fast-check');19const { sample } = require('fast-check');20const { assert } = require('fast-check');21const fc = require('fast-check');22const { classify } = require('fast-check');23const { generate } = require('fast-check');24const { sample } = require('fast-check');25const { assert } = require('fast-check');26const fc = require('fast-check');27const { classify } = require('fast-check');28const { generate } = require('fast-check');29const { sample } = require('fast-check');30const { assert } = require('fast-check');31const fc = require('fast-check');32const { classify } = require('fast-check');33const { generate } = require('fast-check');34const { sample } = require('fast-check');35const { assert } = require('fast-check');36const fc = require('fast-check');37const { classify } = require('fast-check');38const { generate } = require('fast-check');39const { sample } = require('fast-check');40const { assert } = require('fast-check');41const fc = require('fast-check');42const {

Full Screen

Using AI Code Generation

copy

Full Screen

1const { classify, property } = require('fast-check');2const fc = require('fast-check');3const { suite, test, slow, timeout, skip, only } = require('mocha-typescript');4const assert = require('assert');5suite('Classify', () => {6 test('Classify', () => {7 classify('a', 'a');8 classify('b', 'b');9 classify('c', 'c');10 classify('d', 'd');11 classify('e', 'e');12 classify('f', 'f');13 classify('g', 'g');14 classify('h', 'h');15 classify('i', 'i');16 classify('j', 'j');17 classify('k', 'k');18 classify('l', 'l');19 classify('m', 'm');20 classify('n', 'n');21 classify('o', 'o');22 classify('p', 'p');23 classify('q', 'q');24 classify('r', 'r');25 classify('s', 's');26 classify('t', 't');27 classify('u', 'u');28 classify('v', 'v');29 classify('w', 'w');30 classify('x', 'x');31 classify('y', 'y');32 classify('z', 'z');33 classify('aa', 'aa');34 classify('ab', 'ab');35 classify('ac', 'ac');36 classify('ad', 'ad');37 classify('ae', 'ae');38 classify('af', 'af');39 classify('ag', 'ag');40 classify('ah', 'ah');41 classify('ai', 'ai');42 classify('aj', 'aj');43 classify('ak', 'ak');44 classify('al', 'al');45 classify('am', 'am');46 classify('an', 'an');47 classify('ao', 'ao');48 classify('ap', 'ap');49 classify('aq', 'aq');50 classify('ar', 'ar');51 classify('as', 'as');52 classify('at', 'at');53 classify('au', 'au');54 classify('av', 'av');55 classify('aw', 'aw');56 classify('ax', 'ax');57 classify('ay', 'ay');58 classify('az', 'az');59 classify('ba', 'ba');60 classify('bb', 'bb');

Full Screen

Using AI Code Generation

copy

Full Screen

1const { classify } = require('fast-check');2const { isEven, isOdd } = require('./isEven');3describe('isEven', () => {4 it('should return true if the number is even', () => {5 fc.assert(6 fc.property(fc.integer(), value => {7 const actual = isEven(value);8 expect(actual).toBe(value % 2 === 0);9 })10 );11 });12});13const isEven = value => value % 2 === 0;14const isOdd = value => !isEven(value);15module.exports = { isEven, isOdd };16const { classify } = require('fast-check');17const { isEven, isOdd } = require('./isEven');18describe('isEven', () => {19 it('should return true if the number is even', () => {20 fc.assert(21 fc.property(fc.integer(), value => {22 const actual = isEven(value);23 expect(actual).toBe(value % 2 === 0);24 })25 );26 });27 it('should return true if the number is even', () => {28 fc.assert(29 fc.property(fc.integer(), value => {30 const actual = isEven(value);31 expect(actual).toBe(value % 2 === 0);32 classify('even', value % 2 === 0);33 classify('odd', value % 2 !== 0);34 })35 );36 });37});

Full Screen

Using AI Code Generation

copy

Full Screen

1const { classify } = require('fast-check-monorepo');2const { classifyNumber } = require('fast-check-monorepo');3const { classifyString } = require('fast-check-monorepo');4const { classifyBoolean } = require('fast-check-monorepo');5const { classifyConstant } = require('fast-check-monorepo');6const { classifyFunction } = require('fast-check-monorepo');7const { classifyDate } = require('fast-check-monorepo');8const { classifyObject } = require('fast-check-monorepo');9const { classifyArray } = require('fast-check-monorepo');10const { classifySet } = require('fast-check-monorepo');11const { classifyMap } = require('fast-check-monorepo');12const { classifySymbol } = require('fast-check-monorepo');13const { classifyUndefined } = require('fast-check-monorepo');14const { classifyNull } = require('fast-check-monorepo');15const { classifyNaN } = require('fast-check-monorepo');16const { classifyInfinity } = require('fast-check-monorepo');17const { classifyNegativeInfinity } = require('fast-check-monorepo');18const { classifyPositiveInfinity } = require('fast-check-monorepo');19const { classifyInteger } = require('fast-check-monorepo');20const { classifyPositiveInteger } = require('fast-check-monorepo');21const { classifyNegativeInteger } = require('fast-check-monorepo');22const { classifyFloat } = require('fast-check-monorepo');23const { classifyPositiveFloat } = require('fast-check-monorepo');24const { classifyNegativeFloat } = require('fast-check-monorepo');25const { classifySafeInteger } = require('fast-check-monorepo');26const { classifyPositiveSafeInteger } = require('fast-check-monorepo');27const { classifyNegativeSafeInteger } = require('fast-check-monorepo');28const { classifyInteger32 } = require('fast-check-monorepo');29const { classifyPositiveInteger32 } = require('fast-check-monorepo');30const { classifyNegativeInteger32 } = require('fast-check-monorepo');31const { classifyInteger53 } = require('fast-check-monorepo');32const { classifyPositiveInteger53 } = require('fast-check-monorepo');33const { classifyNegativeInteger53 } = require('fast-check-monorepo');34const { classifyInteger64 } = require('fast-check-mon

Full Screen

Using AI Code Generation

copy

Full Screen

1const { classify } = require('fast-check')2const { isEven, isOdd } = require('./math')3const isEvenArb = classify('even', 'odd', isEven)4const isOddArb = classify('even', 'odd', isOdd)5fc.assert(6 fc.property(isEvenArb, isOddArb, (n1, n2) => {7 })8const { classify } = require('fast-check-monorepo')

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const classify = require('fast-check-monorepo').classify;3const { getArbitrary } = require('./arbitrary');4const { getShrinkable } = require('./shrinkable');5const arbitrary = getArbitrary();6const shrinkable = getShrinkable();7const classification = classify(arbitrary, shrinkable);8console.log(classification);9- [classify](#classify)10 - [Parameters](#parameters)11 - [Examples](#examples)12- [getArbitrary](#getarbitrary)13 - [Examples](#examples-1)14- [getShrinkable](#getshrinkable)15 - [Examples](#examples-2)16- [getShrinkableWith](#getshrinkablewith)17 - [Parameters](#parameters-1)18 - [Examples](#examples-3)19const fc = require('fast-check');20const classify = require('fast-check-monorepo').classify;21const { getArbitrary } = require('./arbitrary');22const { getShrinkable } = require('./shrinkable');23const arbitrary = getArbitrary();24const shrinkable = getShrinkable();25const classification = classify(arbitrary, shrinkable);26console.log(classification);27const { getArbitrary } = require('fast-check-monorepo');28const arbitrary = getArbitrary();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { classify } = require('fast-check');2const result = classify('a', 'a', 'b', 'b');3console.log(result);4const { classify } = require('fast-check');5const result = classify('a', 'a', 'b', 'b');6console.log(result);7const { classify } = require('fast-check');8const result = classify('a', 'a', 'b', 'b');9console.log(result);10const { classify } = require('fast-check');11const result = classify('a', 'a', 'b', 'b');12console.log(result);13const { classify } = require('fast-check');14const result = classify('a', 'a', 'b', 'b');15console.log(result);16const { classify } = require('fast-check');17const result = classify('a', 'a', 'b', 'b');18console.log(result);19const { classify } = require('fast-check');20const result = classify('a', 'a', 'b', 'b');21console.log(result);22const { classify } = require('fast-check');23const result = classify('a', 'a', 'b', 'b');24console.log(result);

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run fast-check-monorepo automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful