Best JavaScript code snippet using ng-mocks
app.js
Source:app.js
1const accessApps = {2 "code" : 200,3 "message" : "æä½æå",4 "data" : [ {5 "appId" : 31,6 "appName" : "综å管çå¹³å°ï¼æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸ï¼",7 "icon" : "",8 "tenantId" : "1249628559274672128",9 "tenantName" : "æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸"10 }, {11 "appId" : 33,12 "appName" : "çæ§è¿ç»´ç³»ç»ï¼ä¸äºï¼ï¼æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸ï¼",13 "icon" : "menu_jk.png",14 "tenantId" : "1249628559274672128",15 "tenantName" : "æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸"16 }, {17 "appId" : 34,18 "appName" : "稽æ¥æ ¡æ ¸(å¤ç§æ·)ï¼æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸ï¼",19 "icon" : "menu_jc.png",20 "tenantId" : "1249628559274672128",21 "tenantName" : "æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸"22 }, {23 "appId" : 38,24 "appName" : "çæ§è¿ç»´å¤§å±ï¼ä¸äºï¼ï¼æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸ï¼",25 "tenantId" : "1249628559274672128",26 "tenantName" : "æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸"27 }, {28 "appId" : 44,29 "appName" : "驾驶è±ï¼ä¸äºï¼ï¼æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸ï¼",30 "tenantId" : "1249628559274672128",31 "tenantName" : "æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸"32 }, {33 "appId" : 49,34 "appName" : "ç级绿éç³»ç»ï¼è¶æï¼ï¼æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸ï¼",35 "icon" : "menu_lt.png",36 "tenantId" : "1249628559274672128",37 "tenantName" : "æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸"38 }, {39 "appId" : 53,40 "appName" : "çæ§è¿ç»´ç³»ç»VUEçï¼æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸ï¼",41 "icon" : "",42 "tenantId" : "1249628559274672128",43 "tenantName" : "æåå
¬è·¯å¹¿è¥¿æ¡æå
¬å¸"44 }, {45 "appId" : -5,46 "appName" : "æ°ç认è¯ç®¡çç³»ç»"47 }, {48 "appId" : -1,49 "appName" : "认è¯ç®¡çç³»ç»",50 "icon" : ""51 }, {52 "appId" : 2,53 "appName" : "cpcå¡è°æ¨ç®¡çç³»ç»"54 }, {55 "appId" : 3,56 "appName" : "å
¥å£æ²»è¶
",57 "icon" : ""58 }, {59 "appId" : 4,60 "appName" : "å
¥å£æ²»è¶
移å¨ç«¯"61 }, {62 "appId" : 5,63 "appName" : "ecip-demo",64 "icon" : ""65 }, {66 "appId" : 7,67 "appName" : "ååè´¹ç管çç³»ç»"68 }, {69 "appId" : 8,70 "appName" : "çç稽æ¥ç³»ç»(åºçº¿)"71 }, {72 "appId" : 9,73 "appName" : "ç级è¿è¥åæ(æ åç)"74 }, {75 "appId" : 10,76 "appName" : "ä¸éæ-çæ§è¿ç»´ç®¡çç³»ç»"77 }, {78 "appId" : 11,79 "appName" : "山西è¿è¥ç®¡çç³»ç»",80 "icon" : ""81 }, {82 "appId" : 12,83 "appName" : "产åä¸é¨ç级费ç管çç³»ç»"84 }, {85 "appId" : 13,86 "appName" : "山西è¿è¥ç®¡ç-æ¶è´¹ç»©æèæ ¸ç®¡çç³»ç»"87 }, {88 "appId" : 14,89 "appName" : "山西è¿è¥ç®¡ç-è¿è¥ç®¡çè¯ä»·ç³»ç»"90 }, {91 "appId" : 15,92 "appName" : "路段稽æ¥ç³»ç»(åå)"93 }, {94 "appId" : 17,95 "appName" : "é«éå
¬è·¯æ¶è´¹ä¸å¡å¹³å°"96 }, {97 "appId" : 18,98 "appName" : "è·¯ç½æ¨¡å"99 }, {100 "appId" : 19,101 "appName" : "山西è¿è¥ç®¡ç-å³çåæç³»ç»"102 }, {103 "appId" : 20,104 "appName" : "æ°æ®ä¼ è¾çæ§åºç¨"105 }, {106 "appId" : 21,107 "appName" : "çç稽æ¥ç³»ç»(山西)"108 }, {109 "appId" : 22,110 "appName" : "è´¹ç管çè·¯ç½ç³»ç»"111 }, {112 "appId" : 23,113 "appName" : "路段稽æ¥ç³»ç»(åºçº¿)"114 }, {115 "appId" : 24,116 "appName" : "å
¨å½è·¯ç½æ¨¡åå±ç¤ºç³»ç»"117 }, {118 "appId" : 28,119 "appName" : "esæ°æ®æ¥è¯¢ç³»ç»"120 }, {121 "appId" : 29,122 "appName" : "flowable"123 }, {124 "appId" : 30,125 "appName" : "路段稽æ¥ç³»ç»",126 "icon" : "menu3.png"127 }, {128 "appId" : 32,129 "appName" : "è¿ç»´ç®¡çå¤ç§æ·"130 }, {131 "appId" : 35,132 "appName" : "åæ°ä¸å管ç"133 }, {134 "appId" : 36,135 "appName" : "æ°æ®èµäº§ç®¡çç³»ç»"136 }, {137 "appId" : 40,138 "appName" : "å°å¾åæ 管çç³»ç»"139 }, {140 "appId" : 42,141 "appName" : "æ²³åæ²»è¶
"142 }, {143 "appId" : 45,144 "appName" : "ç»ä¸å
±äº«å¹³å°",145 "icon" : ""146 }, {147 "appId" : 46,148 "appName" : "æ¶è´¹ä¸å¡å¹³å°",149 "icon" : ""150 }, {151 "appId" : 47,152 "appName" : "åå·æ²»è¶
ç³»ç»",153 "icon" : ""154 }, {155 "appId" : 50,156 "appName" : "西èé£æ§dev",157 "icon" : ""158 }, {159 "appId" : 51,160 "appName" : "移å¨æ¯ä»ä¸å¡ç®¡çç³»ç»",161 "icon" : ""162 }, {163 "appId" : 52,164 "appName" : "éæµ·è´¨éé£æ§ç³»ç»",165 "icon" : ""166 }, {167 "appId" : 54,168 "appName" : "移å¨æ¯ä»åæ·ç®¡çç³»ç»",169 "icon" : ""170 }, {171 "appId" : 55,172 "appName" : "ecip-vueéåæºç",173 "icon" : ""174 }, {175 "appId" : 56,176 "appName" : "稽æ¥æµè¯",177 "icon" : ""178 }, {179 "appId" : 57,180 "appName" : "test-1",181 "icon" : ""182 }, {183 "appId" : 58,184 "appName" : "å³çæ¯æç³»ç»",185 "icon" : ""186 }, {187 "appId" : 60,188 "appName" : "è¿è¡åæç³»ç»ï¼ç款ï¼",189 "icon" : ""190 }, {191 "appId" : 61,192 "appName" : "è¿è¡çæµæ°ç",193 "icon" : ""194 }, {195 "appId" : 62,196 "appName" : "å¾®æå¡app1",197 "icon" : ""198 }, {199 "appId" : 63,200 "appName" : "å¾®æå¡app2",201 "icon" : ""202 }, {203 "appId" : 64,204 "appName" : "å°é¢æ¯ä»ç®¡çç³»ç»",205 "icon" : ""206 } ],207 "success" : true208}209const tenantApps = {210 "code" : 200,211 "message" : "æä½æå",212 "data" : [ {213 "appId" : -5,214 "appName" : "æ°ç认è¯ç®¡çç³»ç»"215 }, {216 "appId" : 41,217 "appName" : "vueçdemo",218 "icon" : ""219 }, {220 "appId" : 31,221 "appName" : "综å管çå¹³å°",222 "icon" : ""223 }, {224 "appId" : 62,225 "appName" : "å¾®æå¡app1",226 "icon" : "",227 "fromExternal" : 0,228 "target" : ""229 }, {230 "appId" : 55,231 "appName" : "ecip-vueéåæºç",232 "icon" : ""233 }, {234 "appId" : 57,235 "appName" : "test-1",236 "icon" : ""237 }, {238 "appId" : 63,239 "appName" : "å¾®æå¡app2",240 "icon" : "",241 "fromExternal" : 0,242 "target" : ""243 }, {244 "appId" : -1,245 "appName" : "认è¯ç®¡çç³»ç»",246 "icon" : "",247 "fromExternal" : 0,248 "target" : ""249 }, {250 "appId" : 39,251 "appName" : "å端æ¼ç¤ºç³»ç»"252 }, {253 "appId" : 45,254 "appName" : "ç»ä¸å
±äº«å¹³å°",255 "icon" : ""256 }, {257 "appId" : 46,258 "appName" : "æ¶è´¹ä¸å¡å¹³å°",259 "icon" : ""260 }, {261 "appId" : 47,262 "appName" : "åå·æ²»è¶
ç³»ç»",263 "icon" : ""264 }, {265 "appId" : 52,266 "appName" : "éæµ·è´¨éé£æ§ç³»ç»",267 "icon" : ""268 }, {269 "appId" : 56,270 "appName" : "稽æ¥æµè¯",271 "icon" : "",272 "fromExternal" : 1,273 "target" : ""274 }, {275 "appId" : 59,276 "appName" : "ä¹æ±äºæ¡¥æ°æ®åæ°åè¿è¥åæå¹³å°",277 "icon" : "",278 "fromExternal" : 0,279 "target" : ""280 }, {281 "appId" : 60,282 "appName" : "è¿è¡åæç³»ç»ï¼ç款ï¼",283 "icon" : "",284 "fromExternal" : 0,285 "target" : ""286 }, {287 "appId" : 61,288 "appName" : "è¿è¡çæµæ°ç",289 "icon" : "",290 "fromExternal" : 0,291 "target" : ""292 }, {293 "appId" : 64,294 "appName" : "å°é¢æ¯ä»ç®¡çç³»ç»",295 "icon" : "",296 "fromExternal" : 0,297 "target" : ""298 }, {299 "appId" : 1,300 "appName" : "å¤ä¹æ§æ è¯ç¹çæ§ç®¡çç³»ç»"301 }, {302 "appId" : 2,303 "appName" : "cpcå¡è°æ¨ç®¡çç³»ç»"304 }, {305 "appId" : 3,306 "appName" : "å
¥å£æ²»è¶
",307 "icon" : "",308 "fromExternal" : 0,309 "target" : ""310 }, {311 "appId" : 4,312 "appName" : "å
¥å£æ²»è¶
移å¨ç«¯"313 }, {314 "appId" : 5,315 "appName" : "ecip-demo",316 "icon" : ""317 }, {318 "appId" : 6,319 "appName" : "è¿è¡çæµç³»ç»å·¥ä½å°"320 }, {321 "appId" : 7,322 "appName" : "ååè´¹ç管çç³»ç»"323 }, {324 "appId" : 8,325 "appName" : "çç稽æ¥ç³»ç»(åºçº¿)"326 }, {327 "appId" : 9,328 "appName" : "ç级è¿è¥åæ(æ åç)"329 }, {330 "appId" : 10,331 "appName" : "ä¸éæ-çæ§è¿ç»´ç®¡çç³»ç»"332 }, {333 "appId" : 11,334 "appName" : "山西è¿è¥ç®¡çç³»ç»",335 "icon" : ""336 }, {337 "appId" : 12,338 "appName" : "产åä¸é¨ç级费ç管çç³»ç»"339 }, {340 "appId" : 13,341 "appName" : "山西è¿è¥ç®¡ç-æ¶è´¹ç»©æèæ ¸ç®¡çç³»ç»"342 }, {343 "appId" : 14,344 "appName" : "山西è¿è¥ç®¡ç-è¿è¥ç®¡çè¯ä»·ç³»ç»"345 }, {346 "appId" : 15,347 "appName" : "路段稽æ¥ç³»ç»(åå)"348 }, {349 "appId" : 17,350 "appName" : "é«éå
¬è·¯æ¶è´¹ä¸å¡å¹³å°"351 }, {352 "appId" : 18,353 "appName" : "è·¯ç½æ¨¡å"354 }, {355 "appId" : 19,356 "appName" : "山西è¿è¥ç®¡ç-å³çåæç³»ç»"357 }, {358 "appId" : 20,359 "appName" : "æ°æ®ä¼ è¾çæ§åºç¨"360 }, {361 "appId" : 21,362 "appName" : "çç稽æ¥ç³»ç»(山西)"363 }, {364 "appId" : 22,365 "appName" : "è´¹ç管çè·¯ç½ç³»ç»"366 }, {367 "appId" : 23,368 "appName" : "路段稽æ¥ç³»ç»(åºçº¿)"369 }, {370 "appId" : 24,371 "appName" : "å
¨å½è·¯ç½æ¨¡åå±ç¤ºç³»ç»"372 }, {373 "appId" : 26,374 "appName" : "è¿ç»´çæ§ç³»ç»",375 "icon" : "menu1.png"376 }, {377 "appId" : 27,378 "appName" : "è¿è¡çæµç³»ç»",379 "icon" : "menu2.png"380 }, {381 "appId" : 28,382 "appName" : "esæ°æ®æ¥è¯¢ç³»ç»"383 }, {384 "appId" : 29,385 "appName" : "flowable"386 }, {387 "appId" : 30,388 "appName" : "路段稽æ¥ç³»ç»",389 "icon" : "menu3.png"390 }, {391 "appId" : 49,392 "appName" : "ç级绿éç³»ç»ï¼è¶æï¼",393 "icon" : "menu_lt.png",394 "fromExternal" : 1395 }, {396 "appId" : 32,397 "appName" : "è¿ç»´ç®¡çå¤ç§æ·"398 }, {399 "appId" : 53,400 "appName" : "çæ§è¿ç»´ç³»ç»VUEç",401 "icon" : ""402 }, {403 "appId" : 33,404 "appName" : "çæ§è¿ç»´ç³»ç»ï¼ä¸äºï¼",405 "icon" : "menu_jk.png"406 }, {407 "appId" : 34,408 "appName" : "稽æ¥æ ¡æ ¸(å¤ç§æ·)",409 "icon" : "menu_jc.png"410 }, {411 "appId" : 35,412 "appName" : "åæ°ä¸å管ç"413 }, {414 "appId" : 36,415 "appName" : "æ°æ®èµäº§ç®¡çç³»ç»"416 }, {417 "appId" : 51,418 "appName" : "移å¨æ¯ä»ä¸å¡ç®¡çç³»ç»",419 "icon" : ""420 }, {421 "appId" : 54,422 "appName" : "移å¨æ¯ä»åæ·ç®¡çç³»ç»",423 "icon" : ""424 }, {425 "appId" : 37,426 "appName" : "æ 人æ¶è´¹ç«ç³»ç»",427 "icon" : "menu_sf.png"428 }, {429 "appId" : 38,430 "appName" : "çæ§è¿ç»´å¤§å±ï¼ä¸äºï¼"431 }, {432 "appId" : 40,433 "appName" : "å°å¾åæ 管çç³»ç»"434 }, {435 "appId" : 42,436 "appName" : "æ²³åæ²»è¶
"437 }, {438 "appId" : 43,439 "appName" : "vue-demo-lxq"440 }, {441 "appId" : 44,442 "appName" : "驾驶è±ï¼ä¸äºï¼"443 }, {444 "appId" : 48,445 "appName" : "å®å¶",446 "icon" : ""447 }, {448 "appId" : 58,449 "appName" : "å³çæ¯æç³»ç»",450 "icon" : ""451 }, {452 "appId" : 50,453 "appName" : "西èé£æ§dev",454 "icon" : ""455 } ],456 "success" : true457}458const apps = {459 "code" : 200,460 "message" : "æä½æå",461 "data" : [ {462 "appId" : -5,463 "appName" : "æ°ç认è¯ç®¡çç³»ç»",464 "depts" : [ ]465 }, {466 "appId" : 41,467 "appName" : "vueçdemo",468 "icon" : "",469 "depts" : [ ]470 }, {471 "appId" : 31,472 "appName" : "综å管çå¹³å°",473 "icon" : "",474 "depts" : [ ]475 }, {476 "appId" : 62,477 "appName" : "å¾®æå¡app1",478 "icon" : "",479 "fromExternal" : 0,480 "target" : "",481 "depts" : [ ]482 }, {483 "appId" : 55,484 "appName" : "ecip-vueéåæºç",485 "icon" : "",486 "depts" : [ ]487 }, {488 "appId" : 57,489 "appName" : "test-1",490 "icon" : "",491 "depts" : [ ]492 }, {493 "appId" : 63,494 "appName" : "å¾®æå¡app2",495 "icon" : "",496 "fromExternal" : 0,497 "target" : "",498 "depts" : [ ]499 }, {500 "appId" : -1,501 "appName" : "认è¯ç®¡çç³»ç»",502 "icon" : "",503 "fromExternal" : 0,504 "target" : "",505 "depts" : [ ]506 }, {507 "appId" : 39,508 "appName" : "å端æ¼ç¤ºç³»ç»",509 "depts" : [ ]510 }, {511 "appId" : 45,512 "appName" : "ç»ä¸å
±äº«å¹³å°",513 "icon" : "",514 "depts" : [ ]515 }, {516 "appId" : 46,517 "appName" : "æ¶è´¹ä¸å¡å¹³å°",518 "icon" : "",519 "depts" : [ ]520 }, {521 "appId" : 47,522 "appName" : "åå·æ²»è¶
ç³»ç»",523 "icon" : "",524 "depts" : [ ]525 }, {526 "appId" : 52,527 "appName" : "éæµ·è´¨éé£æ§ç³»ç»",528 "icon" : "",529 "depts" : [ ]530 }, {531 "appId" : 56,532 "appName" : "稽æ¥æµè¯",533 "icon" : "",534 "fromExternal" : 1,535 "target" : "",536 "depts" : [ ]537 }, {538 "appId" : 59,539 "appName" : "ä¹æ±äºæ¡¥æ°æ®åæ°åè¿è¥åæå¹³å°",540 "icon" : "",541 "fromExternal" : 0,542 "target" : "",543 "depts" : [ ]544 }, {545 "appId" : 60,546 "appName" : "è¿è¡åæç³»ç»ï¼ç款ï¼",547 "icon" : "",548 "fromExternal" : 0,549 "target" : "",550 "depts" : [ ]551 }, {552 "appId" : 61,553 "appName" : "è¿è¡çæµæ°ç",554 "icon" : "",555 "fromExternal" : 0,556 "target" : "",557 "depts" : [ ]558 }, {559 "appId" : 64,560 "appName" : "å°é¢æ¯ä»ç®¡çç³»ç»",561 "icon" : "",562 "fromExternal" : 0,563 "target" : "",564 "depts" : [ ]565 }, {566 "appId" : 1,567 "appName" : "å¤ä¹æ§æ è¯ç¹çæ§ç®¡çç³»ç»",568 "depts" : [ ]569 }, {570 "appId" : 2,571 "appName" : "cpcå¡è°æ¨ç®¡çç³»ç»",572 "depts" : [ ]573 }, {574 "appId" : 3,575 "appName" : "å
¥å£æ²»è¶
",576 "icon" : "",577 "fromExternal" : 0,578 "target" : "",579 "depts" : [ ]580 }, {581 "appId" : 4,582 "appName" : "å
¥å£æ²»è¶
移å¨ç«¯",583 "depts" : [ ]584 }, {585 "appId" : 5,586 "appName" : "ecip-demo",587 "icon" : "",588 "depts" : [ ]589 }, {590 "appId" : 6,591 "appName" : "è¿è¡çæµç³»ç»å·¥ä½å°",592 "depts" : [ ]593 }, {594 "appId" : 7,595 "appName" : "ååè´¹ç管çç³»ç»",596 "depts" : [ ]597 }, {598 "appId" : 8,599 "appName" : "çç稽æ¥ç³»ç»(åºçº¿)",600 "depts" : [ ]601 }, {602 "appId" : 9,603 "appName" : "ç级è¿è¥åæ(æ åç)",604 "depts" : [ ]605 }, {606 "appId" : 10,607 "appName" : "ä¸éæ-çæ§è¿ç»´ç®¡çç³»ç»",608 "depts" : [ ]609 }, {610 "appId" : 11,611 "appName" : "山西è¿è¥ç®¡çç³»ç»",612 "icon" : "",613 "depts" : [ ]614 }, {615 "appId" : 12,616 "appName" : "产åä¸é¨ç级费ç管çç³»ç»",617 "depts" : [ ]618 }, {619 "appId" : 13,620 "appName" : "山西è¿è¥ç®¡ç-æ¶è´¹ç»©æèæ ¸ç®¡çç³»ç»",621 "depts" : [ ]622 }, {623 "appId" : 14,624 "appName" : "山西è¿è¥ç®¡ç-è¿è¥ç®¡çè¯ä»·ç³»ç»",625 "depts" : [ ]626 }, {627 "appId" : 15,628 "appName" : "路段稽æ¥ç³»ç»(åå)",629 "depts" : [ ]630 }, {631 "appId" : 17,632 "appName" : "é«éå
¬è·¯æ¶è´¹ä¸å¡å¹³å°",633 "depts" : [ ]634 }, {635 "appId" : 18,636 "appName" : "è·¯ç½æ¨¡å",637 "depts" : [ ]638 }, {639 "appId" : 19,640 "appName" : "山西è¿è¥ç®¡ç-å³çåæç³»ç»",641 "depts" : [ ]642 }, {643 "appId" : 20,644 "appName" : "æ°æ®ä¼ è¾çæ§åºç¨",645 "depts" : [ ]646 }, {647 "appId" : 21,648 "appName" : "çç稽æ¥ç³»ç»(山西)",649 "depts" : [ ]650 }, {651 "appId" : 22,652 "appName" : "è´¹ç管çè·¯ç½ç³»ç»",653 "depts" : [ ]654 }, {655 "appId" : 23,656 "appName" : "路段稽æ¥ç³»ç»(åºçº¿)",657 "depts" : [ ]658 }, {659 "appId" : 24,660 "appName" : "å
¨å½è·¯ç½æ¨¡åå±ç¤ºç³»ç»",661 "depts" : [ ]662 }, {663 "appId" : 26,664 "appName" : "è¿ç»´çæ§ç³»ç»",665 "icon" : "menu1.png",666 "depts" : [ ]667 }, {668 "appId" : 27,669 "appName" : "è¿è¡çæµç³»ç»",670 "icon" : "menu2.png",671 "depts" : [ ]672 }, {673 "appId" : 28,674 "appName" : "esæ°æ®æ¥è¯¢ç³»ç»",675 "depts" : [ ]676 }, {677 "appId" : 29,678 "appName" : "flowable",679 "depts" : [ ]680 }, {681 "appId" : 30,682 "appName" : "路段稽æ¥ç³»ç»",683 "icon" : "menu3.png",684 "depts" : [ ]685 }, {686 "appId" : 49,687 "appName" : "ç级绿éç³»ç»ï¼è¶æï¼",688 "icon" : "menu_lt.png",689 "fromExternal" : 1,690 "depts" : [ ]691 }, {692 "appId" : 32,693 "appName" : "è¿ç»´ç®¡çå¤ç§æ·",694 "depts" : [ ]695 }, {696 "appId" : 53,697 "appName" : "çæ§è¿ç»´ç³»ç»VUEç",698 "icon" : "",699 "depts" : [ ]700 }, {701 "appId" : 33,702 "appName" : "çæ§è¿ç»´ç³»ç»ï¼ä¸äºï¼",703 "icon" : "menu_jk.png",704 "depts" : [ ]705 }, {706 "appId" : 34,707 "appName" : "稽æ¥æ ¡æ ¸(å¤ç§æ·)",708 "icon" : "menu_jc.png",709 "depts" : [ ]710 }, {711 "appId" : 35,712 "appName" : "åæ°ä¸å管ç",713 "depts" : [ ]714 }, {715 "appId" : 36,716 "appName" : "æ°æ®èµäº§ç®¡çç³»ç»",717 "depts" : [ ]718 }, {719 "appId" : 51,720 "appName" : "移å¨æ¯ä»ä¸å¡ç®¡çç³»ç»",721 "icon" : "",722 "depts" : [ ]723 }, {724 "appId" : 54,725 "appName" : "移å¨æ¯ä»åæ·ç®¡çç³»ç»",726 "icon" : "",727 "depts" : [ ]728 }, {729 "appId" : 37,730 "appName" : "æ 人æ¶è´¹ç«ç³»ç»",731 "icon" : "menu_sf.png",732 "depts" : [ ]733 }, {734 "appId" : 38,735 "appName" : "çæ§è¿ç»´å¤§å±ï¼ä¸äºï¼",736 "depts" : [ ]737 }, {738 "appId" : 40,739 "appName" : "å°å¾åæ 管çç³»ç»",740 "depts" : [ ]741 }, {742 "appId" : 42,743 "appName" : "æ²³åæ²»è¶
",744 "depts" : [ ]745 }, {746 "appId" : 43,747 "appName" : "vue-demo-lxq",748 "depts" : [ ]749 }, {750 "appId" : 44,751 "appName" : "驾驶è±ï¼ä¸äºï¼",752 "depts" : [ ]753 }, {754 "appId" : 48,755 "appName" : "å®å¶",756 "icon" : "",757 "depts" : [ ]758 }, {759 "appId" : 58,760 "appName" : "å³çæ¯æç³»ç»",761 "icon" : "",762 "depts" : [ ]763 }, {764 "appId" : 50,765 "appName" : "西èé£æ§dev",766 "icon" : "",767 "depts" : [ ]768 } ],769 "success" : true770}771module.exports = [772 {773 url: '/api/v1/app/sysrRegisterApp/accessibleAppsByTenant',774 type: 'get',775 response: _ => {776 return accessApps777 }778 },779 {780 url: '/api/v1/app/sysrRegisterApp/tenantApps',781 type: 'get',782 response: _ => {783 return tenantApps784 }785 },786 {787 url: '/api/v1/app/sysrRegisterApp',788 type: 'get',789 response: _ => {790 return tenantApps791 }792 },...
data.js
Source:data.js
1DATA={2 app:{//æ¡é¢13 'dtbd':{4 appid:'2534',5 icon:'Customize.png',6 name:'onlineå¼å',7 asc :18 },9 'sosomap':{10 appid:'42',11 icon:'Applications Folder.png',12 name:'表åé
ç½®',13 asc :214 },15 'jinshan':{16 appid:'8992',17 icon:'Documents Folder.png',18 name:'å¨æ表åé
ç½®',19 asc :320 },21 'douban':{22 appid:'3402',23 icon:'douban.png',24 name:'è±ç£çµå°',25 asc :426 },27 'Pixlr':{28 appid:'64',29 icon:'pixlr.png',30 name:'Pixlr',31 asc:532 },33 'weather':{34 appid:'18',35 icon:'5.png',36 name:'天æ°',37 asc:638 },39 'Clock':{40 appid:'20',41 icon:'8.png',42 name:'æ¶é',43 asc:7,44 },45 46 'mangguo':{47 appid:'3401',48 icon:'User.png',49 name:'ç¨æ·åæ',50 asc :151 },52 'tuanmap':{53 appid:'2527',54 icon:'Burn.png',55 name:'æ¥è¡¨åæ',56 asc :257 },58 'fastsearch':{59 appid:'3693',60 icon:'fastsearch.png',61 name:'å¿«éæ¥è¯¢',62 asc :363 },64 'bianqian':{65 appid:'10',66 icon:'bianqian.png',67 name:'便ç¾',68 asc :469 },70 'wangdesk':{71 appid:'13',72 icon:'wangdesk.png',73 name:'ç½ç»ç¡¬ç',74 asc :575 },76 'friend':{77 appid:'21',78 icon:'Finder.png',79 name:'ç¨æ·ç®¡ç',80 asc :181 },82 'friendnear':{83 appid:'31',84 icon:'friendnear.png',85 name:'æ°æ®åå
¸',86 asc :287 },88 'friendgroup':{89 appid:'32',90 icon:'friendgroup.png',91 name:'è§è²ç®¡ç',92 asc :393 },94 'kaikai':{95 appid:'2250',96 icon:'kaikai.png',97 name:'èå管ç',98 asc :499 },100 'kxjy':{101 appid:'2535',102 icon:'kxjy.png',103 name:'å¾æ 管ç',104 asc :5105 },106 107 'dygl':{108 appid:'2535',109 icon:'kxjy.png',110 name:'å¾æ 管ç',111 asc :5112 },113 'qidianzhongwen':{114 appid:'2528',115 icon:'qidianzhongwen.png',116 name:'表åéªè¯',117 asc :1118 },119 'qqread':{120 appid:'45',121 icon:'qqread.png',122 name:'ä¸å¯¹å¤æ¨¡å',123 asc :2124 },125 'xiami':{126 appid:'2526',127 icon:'xiami.png',128 name:'ç¹æ®å¸å±',129 asc :3130 },131 'musicbox':{132 appid:'56',133 icon:'musicbox.png',134 name:'å¨çº¿word',135 asc :4136 },137 'vadio':{138 appid:'15',139 icon:'vadio.png',140 name:'å¤é件管ç',141 asc :5142 },143 'leshi':{144 appid:'3148',145 icon:'leshi.png',146 name:'ä¹è§ç½',147 asc :6148 },149 'doudizhi':{150 appid:'48',151 icon:'Super Disk.png',152 name:'æ°æ®çæ§',153 asc :1154 },155 '3366':{156 appid:'49',157 icon:'Utilities.png',158 name:'å®æ¶ä»»å¡',159 asc :2160 },161 'qqbaby':{162 appid:'26',163 icon:'fastsearch.png',164 name:'ç³»ç»æ¥å¿',165 asc :3166 },167 'game':{168 appid:'1000',169 icon:'Utilities Folder.png',170 name:'å¨çº¿ç»´æ¤',171 asc :4172 }173 },174 sApp:{//侧边æ åºç¨175 /*'297e20104620167201462016b5fe001f':{176 appid:'297e20104620167201462016b5fe001f',177 icon:'plug-in/accordion/images/desk/user.png',178 name:'ç¨æ·ç®¡ç',179 asc :1,180 url: 'userController.do?user'181 },182 '297e20104620167201462016b6020021':{183 appid:'297e20104620167201462016b6020021',184 icon:'plug-in/accordion/images/desk/role.png',185 name:'è§è²ç®¡ç',186 asc :2,187 url: 'roleController.do?role'188 }*/189 /*'appmarket':{190 appid:'1',191 icon:'appmarket.png',192 url:'http://www.soft8.com.cn/',193 name:'微信è¥é论å',//åºç¨å¸åº194 asc :1195 },196 'qq':{197 appid:'2',198 icon:'big.png',199 url:'http://w.qq.com/',200 name:'WebQQ',201 asc :2202 },203 'weibo':{204 appid:'3',205 icon:'weibo.png',206 url:'http://1.t.qq.com/',//http://t.qq.com/207 name:'è
¾è®¯å¾®å',208 asc :3209 },210 'mail':{211 appid:'4',212 icon:'mail.png',213 url:'https://w.mail.qq.com/',214 name:'è
¾è®¯é®ç®±',215 asc :4216 },217 'zone':{218 appid:'5',219 icon:'zone.png',220 //http://qzone.qq.com/空é´æé®é¢ï¼åä¸ä¸ªæ æ³ä¿æsessionï¼åä¸ä¸ªç´æ¥å¼¹å°æ»é¡µé¢221 url:'http://z.qq.com/',222 name:'QQ空é´',223 asc :5224 },225 'internet':{226 appid:'6',227 icon:'internet.png',228 url:'http://www.baidu.com/',229 name:'äºèç½æç´¢',230 asc :6231 }*/232 }...
Using AI Code Generation
1import { TestBed } from '@angular/core/testing';2import { AppComponent } from './app.component';3import { AppModule } from './app.module';4describe('AppComponent', () => {5 beforeEach(() => {6 TestBed.configureTestingModule({7 imports: [AppModule],8 });9 });10 it('should create the app', () => {11 const fixture = TestBed.createComponent(AppComponent);12 const app = fixture.componentInstance;13 expect(app).toBeTruthy();14 });15});16import { TestBed } from '@angular/core/testing';17import { AppComponent } from './app.component';18import { AppModule } from './app.module';19describe('AppComponent', () => {20 beforeEach(() => {21 TestBed.configureTestingModule({22 imports: [AppModule],23 });24 });25 it('should create the app', () => {26 const fixture = TestBed.createComponent(AppComponent);27 const app = fixture.componentInstance;28 expect(app).toBeTruthy();29 });30});
Using AI Code Generation
1import {ngMocks} from 'ng-mocks';2import {TestBed} from '@angular/core/testing';3import {AppComponent} from './app.component';4describe('AppComponent', () => {5 beforeEach(async () => {6 await TestBed.configureTestingModule({7 }).compileComponents();8 });9 it('should create the app', () => {10 const fixture = TestBed.createComponent(AppComponent);11 const app = fixture.componentInstance;12 expect(app).toBeTruthy();13 });14 it(`should have as title 'app'`, () => {15 const fixture = TestBed.createComponent(AppComponent);16 const app = fixture.componentInstance;17 expect(app.title).toEqual('app');18 });19 it('should render title', () => {20 const fixture = TestBed.createComponent(AppComponent);21 fixture.detectChanges();22 const compiled = fixture.nativeElement;23 expect(compiled.querySelector('.content span').textContent).toContain('app app is running!');24 });25});26import {ngMocks} from 'ng-mocks';27import {TestBed} from '@angular/core/testing';28import {AppComponent} from './app.component';29describe('AppComponent', () => {30 beforeEach(async () => {31 await TestBed.configureTestingModule({32 }).compileComponents();33 });34 it('should create the app', () => {35 const fixture = TestBed.createComponent(AppComponent);36 const app = ngMocks.findInstance(AppComponent);37 expect(app).toBeTruthy();38 });39 it(`should have as title 'app'`, () => {40 const fixture = TestBed.createComponent(AppComponent);41 const app = ngMocks.findInstance(AppComponent);42 expect(app.title).toEqual('app');43 });44 it('should render title', () => {45 const fixture = TestBed.createComponent(AppComponent);46 fixture.detectChanges();47 const compiled = fixture.nativeElement;48 expect(compiled.querySelector('.content span').textContent).toContain('app app is running!');49 });50});
Using AI Code Generation
1import { appId } from 'ng-mocks';2import { ngMocks } from 'ng-mocks';3describe('AppComponent', () => {4 let fixture: ComponentFixture<AppComponent>;5 let component: AppComponent;6 beforeEach(async(() => {7 TestBed.configureTestingModule({8 imports: [RouterTestingModule]9 })10 .compileComponents()11 .then(() => {12 fixture = TestBed.createComponent(AppComponent);13 component = fixture.componentInstance;14 fixture.detectChanges();15 });16 }));17 it('should create the app', () => {18 expect(component).toBeTruthy();19 });20 it('should have as title "app"', () => {21 expect(component.title).toEqual('app');22 });23 it('should render title in a h1 tag', () => {24 const compiled = fixture.debugElement.nativeElement;25 expect(compiled.querySelector('h1').textContent).toContain(26 );27 });28});
Using AI Code Generation
1import { appId } from 'ng-mocks';2import { AppComponent } from './app.component';3describe('AppComponent', () => {4 it('should render title in a h1 tag', () => {5 const fixture = MockRender(AppComponent);6 expect(appId(fixture.debugElement, 'title')).toHaveText('app works!');7 });8});9import { Component } from '@angular/core';10@Component({11 {{title}}12})13export class AppComponent {14 title = 'app works!';15}16 {{title}}17import { Component, OnInit } from '@angular/core';18@Component({19 <li *ngFor="let hero of heroes" (click)="onSelect(hero)">20 <span class="badge">{{hero.id}}</span> {{hero.name}}21 {{selectedHero.name | uppercase}} is my hero22 <button (click)="gotoDetail()">View Details</button>23 .selected {24 background-color: #CFD8DC !important;25 color: white;26 }27 .heroes {28 margin: 0 0 2em 0;29 list-style-type: none;30 padding: 0;31 width: 15em;32 }33 .heroes li {34 cursor: pointer;35 position: relative;36 left: 0;37 background-color: #EEE;38 margin: .5em;39 padding: .3em 0;40 height: 1.6em;41 border-radius: 4px;42 }43 .heroes li.selected:hover {
Using AI Code Generation
1import { mockAppId } from 'ng-mocks';2mockAppId('test');3import { TestBed } from '@angular/core/testing';4import { AppComponent } from './app.component';5describe('AppComponent', () => {6beforeEach(async () => {7await TestBed.configureTestingModule({8}).compileComponents();9});10it('should create the app', () => {11const fixture = TestBed.createComponent(AppComponent);12const app = fixture.componentInstance;13expect(app).toBeTruthy();14});15});16import { TestBed } from '@angular/core/testing';17import { AppComponent } from './app.component';18describe('AppComponent', () => {19beforeEach(async () => {20await TestBed.configureTestingModule({21}).compileComponents();22});23it('should create the app', () => {24const fixture = TestBed.createComponent(AppComponent);25const app = fixture.componentInstance;26expect(app).toBeTruthy();27});28});29import { mockAppId } from 'ng-mocks';30mockAppId('test');31import { TestBed } from '@angular/core/testing';32import { AppComponent } from './app.component';33describe('AppComponent', () => {34beforeEach(async () => {35await TestBed.configureTestingModule({36}).compileComponents();37});38it('should create the app', () => {39const fixture = TestBed.createComponent(AppComponent);40const app = fixture.componentInstance;41expect(app).toBeTruthy();42});43});44import { TestBed } from '@angular/core/testing';45import { AppComponent } from './app.component';46describe('AppComponent', () => {47beforeEach(async () => {48await TestBed.configureTestingModule({49}).compileComponents();50});51it('should create the app', () => {52const fixture = TestBed.createComponent(AppComponent);53const app = fixture.componentInstance;54expect(app).toBeTruthy();55});56});57import { TestBed } from '@angular/core/testing';58import { AppComponent } from './app.component';59describe('AppComponent', () => {60beforeEach(async () => {61await TestBed.configureTestingModule({62}).compileComponents();63});64it('should create the app', () => {
Using AI Code Generation
1import { createApp } from 'ng-mocks';2describe('AppComponent', () => {3 beforeEach(async () => {4 await createApp(AppComponent);5 });6});7import 'zone.js/dist/zone-testing';8import { getTestBed } from '@angular/core/testing';9import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';10getTestBed().initTestEnvironment(11 platformBrowserDynamicTesting()12);13{14 "compilerOptions": {15 },16}17module.exports = function (config) {18 config.set({19 require('karma-jasmine'),20 require('karma-chrome-launcher'),21 require('karma-jasmine-html-reporter'),22 require('karma-coverage-istanbul-reporter'),23 require('@angular-devkit/build-angular/plugins/karma')24 client: {25 },26 coverageIstanbulReporter: {27 dir: require('path').join(__dirname, './coverage/ng-mocks'),28 },29 });30};31module.exports = {32 transformIgnorePatterns: ['node_modules/(?!@ngrx|ngx
Using AI Code Generation
1import { appId } from 'ng-mocks';2it('should use ngMocks', () => {3});4it('should use ngMocks', () => {5});6it('should use ngMocks', () => {7});
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!!