| 650 | /* ======= Test data ======= */ |
| 651 | |
| 652 | function getApplicationATree() { |
| 653 | return { |
| 654 | id: "application.a.id", |
| 655 | version: "1.0.0", |
| 656 | path: applicationAPath, |
| 657 | dependencies: [ |
| 658 | { |
| 659 | id: "library.d.id", |
| 660 | version: "1.0.0", |
| 661 | path: path.join(applicationAPath, "node_modules", "library.d"), |
| 662 | dependencies: [ |
| 663 | { |
| 664 | id: "library.a.id", |
| 665 | version: "1.0.0", |
| 666 | path: path.join(applicationAPath, "node_modules", "collection", "library.a"), |
| 667 | dependencies: [] |
| 668 | }, |
| 669 | { |
| 670 | id: "library.b.id", |
| 671 | version: "1.0.0", |
| 672 | path: path.join(applicationAPath, "node_modules", "collection", "library.b"), |
| 673 | dependencies: [] |
| 674 | }, |
| 675 | { |
| 676 | id: "library.c.id", |
| 677 | version: "1.0.0", |
| 678 | path: path.join(applicationAPath, "node_modules", "collection", "library.c"), |
| 679 | dependencies: [] |
| 680 | } |
| 681 | ] |
| 682 | } |
| 683 | ] |
| 684 | }; |
| 685 | } |
| 686 | |
| 687 | |
| 688 | const applicationCycleATreeIncDeduped = { |