Skip to content

Commit

Permalink
add new icons and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Sep 27, 2024
1 parent 3782941 commit 0fb1188
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 26 deletions.
3 changes: 2 additions & 1 deletion lib/components/upload_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ class _UploadReadyWidget extends StatelessWidget {
],
),
),
Divider(),
const Divider(),
if (state.paymentInfo.isFreeThanksToTurbo) ...[
const SizedBox(height: 8),
Text(
Expand All @@ -1317,6 +1317,7 @@ class _UploadReadyWidget extends StatelessWidget {
RepositoryProvider.value(
value: context.read<ArDriveUploadPreparationManager>(),
child: UploadPaymentMethodView(
useDropdown: true,
onError: () {
context.read<UploadCubit>().emitErrorFromPreparation();
},
Expand Down
Binary file modified packages/ardrive_ui/assets/fonts/ArDriveIcons.ttf
Binary file not shown.
30 changes: 15 additions & 15 deletions packages/ardrive_ui/assets/fonts/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,45 +1197,45 @@
]
},
{
"uid": "4573ed6a9fd2c8bef3149720367244a7",
"css": "turbo-coin",
"code": 59482,
"uid": "28fb2839a66640875ede1bd404024968",
"css": "license-1",
"code": 59471,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M684.8 440.3H676.5C669.6 440.3 664 434.9 664 428.2V419.8H588.5C586 419.8 584.1 421.7 584.1 424.1 584.1 426.5 586 428.4 588.5 428.4H641.5C654 452 661.1 478.8 661.1 507.2 661.1 602.9 580.8 680.5 481.9 680.5 382.9 680.5 302.7 602.9 302.7 507.2 302.7 411.9 382.1 334.6 480.4 333.9L481.9 333.9H664V331.6C664 325 669.6 319.5 676.5 319.5H684.8C691.7 319.5 697.3 325 697.3 331.6V428.2C697.3 434.9 691.7 440.3 684.8 440.3ZM481.9 565.9C515.4 565.9 542.6 539.6 542.6 507.2 542.6 474.7 515.4 448.4 481.9 448.4 448.3 448.4 421.2 474.7 421.2 507.2 421.2 539.6 448.3 565.9 481.9 565.9Z",
"path": "M500 125C361.9 125 250 236.9 250 375 250 452.3 285 521.3 340.1 567.2 383.5 603.3 439.2 625 500 625 565.2 625 624.6 600.1 669.1 559.1 718.9 513.4 750 447.9 750 375 750 236.9 638.1 125 500 125ZM166.7 375C166.7 190.9 315.9 41.7 500 41.7 684.1 41.7 833.3 190.9 833.3 375 833.3 463.3 799 543.6 743 603.2L811.5 907.5C815.2 923.9 808.7 940.8 795 950.6 781.4 960.3 763.3 960.9 749 952.2L734.1 943C591.9 855.5 411.9 858.8 273.1 951.3 259.1 960.7 240.8 960.7 226.8 951.3 212.8 941.9 205.8 925 209.1 908.5L268 614.3C205.5 553.8 166.7 468.9 166.7 375ZM342.1 668.6L308.3 837.8C436.2 782.7 581.7 782.3 710.2 837.1L670.7 661.4C620.8 691.2 562.4 708.3 500 708.3 442.9 708.3 389.1 694 342.1 668.6Z",
"width": 1000
},
"search": [
"turbo-coin"
"license"
]
},
{
"uid": "32ad12ed305e898241cb8c18c26feea0",
"css": "arweave-coin",
"code": 59483,
"uid": "6370e638b249eee39121de66c004cc7a",
"css": "turbo-coin",
"code": 59481,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M580.2 651.8C577.3 648.9 577.3 643.2 574.5 637.5 574.5 631.7 571.6 626 571.6 620.3 565.9 626 560.2 628.9 554.4 634.6 548.7 640.3 540.1 643.2 534.4 646 525.8 648.9 520.1 651.8 508.6 654.6 500 657.5 488.6 657.5 480 657.5 462.8 657.5 448.5 654.6 434.2 648.9 419.8 643.2 408.4 637.5 396.9 628.9 385.5 620.3 379.8 608.8 374 597.4 368.3 585.9 365.4 571.6 365.4 557.3 365.4 522.9 379.8 494.3 405.5 477.1 431.3 457.1 471.4 448.5 522.9 448.5H571.6V428.4C571.6 411.2 565.9 399.8 557.3 391.2 545.8 382.6 531.5 376.9 511.5 376.9 494.3 376.9 482.8 379.7 474.3 388.3 465.7 396.9 462.8 405.5 462.8 417H376.9C376.9 402.6 379.8 388.3 385.5 376.9 391.2 365.4 399.8 354 414.1 342.5 425.6 333.9 439.9 325.3 457.1 319.6 474.3 313.9 494.3 311 517.2 311 537.3 311 554.4 313.9 571.6 319.6 588.8 325.3 603.1 331 617.4 342.5 628.9 351.1 640.3 365.4 646.1 379.7 651.8 394 657.5 411.2 657.5 431.3V574.5C657.5 591.6 657.5 606 660.4 617.4 663.3 628.9 666.1 640.3 669 646V651.8H580.2ZM497.2 591.6C505.8 591.6 514.3 591.6 520.1 588.8 528.7 585.9 534.4 583 540.1 580.2 545.8 577.3 551.6 574.5 554.4 568.7 557.3 565.9 563 560.1 565.9 557.3V500H522.9C508.6 500 497.2 500 488.6 502.9 480 505.7 471.4 508.6 465.7 514.3 459.9 520 454.2 522.9 451.3 531.5 448.5 537.2 448.5 545.8 448.5 551.5 448.5 563 451.3 571.6 459.9 580.2 468.5 588.8 482.8 591.6 497.2 591.6ZM500 114.8C287.3 114.8 114.8 287.3 114.8 500 114.8 712.7 287.3 885.2 500 885.2 712.7 885.2 885.2 712.7 885.2 500 885.2 287.3 712.7 114.8 500 114.8ZM43.3 500C43.3 247.7 247.7 43.3 500 43.3 752.2 43.3 956.7 247.7 956.7 500 956.7 752.2 752.2 956.7 500 956.7 247.7 956.7 43.3 752.2 43.3 500ZM508.6 654.6C516.2 652.7 521.3 650.8 526.4 648.9 529 648 531.5 647 534.4 646 535.7 645.4 537.2 644.7 538.8 644 541.1 643 543.5 641.9 545.8 640.7 547.6 639.7 549.4 638.7 551 637.5 552.2 636.6 553.4 635.6 554.4 634.6 557.3 631.7 560.1 629.6 563 627.4 565.9 625.3 568.7 623.1 571.6 620.3 571.6 623.1 572.3 626 573 628.9 573.8 631.7 574.5 634.6 574.5 637.5 575.7 640 576.4 642.5 577.1 644.7 577.7 647.2 578.3 649.3 579.5 650.9 579.7 651.2 579.9 651.5 580.2 651.8H669V646C666.6 641.3 664.2 632.5 661.8 623.1 661.3 621.2 660.9 619.3 660.4 617.4 657.5 606 657.5 591.6 657.5 574.5V431.3C657.5 411.2 651.8 394 646.1 379.7 640.3 365.4 628.9 351.1 617.4 342.5 603.1 331 588.8 325.3 571.6 319.6 554.4 313.9 537.2 311 517.2 311 494.3 311 474.2 313.9 457.1 319.6 439.9 325.3 425.6 333.9 414.1 342.5 399.8 354 391.2 365.4 385.5 376.9 383.7 380.4 382.2 384.3 381 388.3 378.2 397.2 376.9 407.1 376.9 417H462.8C462.8 405.5 465.6 396.9 474.2 388.3 482.8 379.7 494.3 376.9 511.5 376.9 531.5 376.9 545.8 382.6 557.3 391.2 564.4 398.3 569.5 407.3 571.1 419.8 571.4 422.5 571.6 425.4 571.6 428.4V448.5H522.9C471.4 448.5 431.3 457 405.5 477.1 379.7 494.3 365.4 522.9 365.4 557.3 365.4 571.6 368.3 585.9 374 597.4 379.7 608.8 385.5 620.3 396.9 628.9 408.4 637.5 419.8 643.2 434.2 648.9 448.5 654.6 462.8 657.5 480 657.5 488.6 657.5 500 657.5 508.6 654.6ZM439.8 388.3C443.2 380.6 448.1 374 454 368.1 470.7 351.4 491.7 348.2 511.5 348.2 537.7 348.2 558.1 356 574.5 368.3L576.1 369.5 577.5 370.9C591.6 385 600.2 403.7 600.2 428.4V477.1H594.5V556.9L600.2 551.1V619.5C600.3 619.8 600.5 620.6 600.8 621.9 600.9 622.1 600.9 622.2 600.9 622.4 601 622.6 601.1 622.9 601.1 623.1H632.3C628.9 608.5 628.9 591.6 628.9 576.6 628.9 575.9 628.9 575.2 628.9 574.5V431.3C628.9 416.7 624.7 403.6 619.5 390.4 615.8 381.2 607.7 371 600.2 365.4L599.9 365.1 599.5 364.9C589.2 356.6 578.8 352.2 562.5 346.8 548.4 342 534.2 339.6 517.2 339.6 496.6 339.6 479.7 342.2 466.1 346.8 452.7 351.2 441.2 358 431.6 365.1 421.4 373.4 415.6 381.1 411.8 388.3H439.8ZM554.4 568.7L565.9 557.3V500H522.9C508.6 500 497.1 500 488.6 502.9 480 505.7 471.4 508.6 465.6 514.3 464.2 515.8 462.7 517.1 461.3 518.3 457.2 521.9 453.5 525.1 451.3 531.5 448.5 537.2 448.5 545.8 448.5 551.5 448.5 563 451.3 571.6 459.9 580.2 468.5 588.8 482.8 591.6 497.1 591.6 505.7 591.6 514.3 591.6 520.1 588.8 528.6 585.9 534.4 583 540.1 580.2 545.8 577.3 551.6 574.5 554.4 568.7ZM530.6 615.4C523.8 618.4 517 619.4 512.3 619.8 507 620.3 501.6 620.3 497.6 620.3L497.1 620.3C481 620.3 456.7 617.4 439.7 600.4 433 593.8 427.7 586.2 424.3 577.2 420.9 568.4 419.8 559.7 419.8 551.5L419.8 551.2C419.8 548.5 419.8 543.7 420.3 538.7 420.8 534.2 421.8 527.5 424.8 520.7 428 512.1 432.6 506.1 437.2 501.6 439.1 499.6 441.1 497.9 442.3 496.8 442.4 496.8 442.5 496.7 442.6 496.6 444 495.4 444.8 494.7 445.4 494.1 450 489.5 455.3 486 460.4 483.3 444.3 487.2 432 492.8 423.1 499.7L422.3 500.3 421.4 500.9C404.6 512.1 394.1 531.3 394.1 557.3 394.1 568.1 396.3 577.9 399.6 584.6 405.7 596.7 408.8 602 414.1 606 422.9 612.5 431.8 617.1 444.8 622.3 455.7 626.7 466.3 628.9 480 628.9 489.9 628.9 496.3 628.6 499.6 627.5L500.6 627.1 501.7 626.9C507.9 625.3 510.8 624.2 514.7 622.7 517 621.8 519.7 620.8 523.5 619.5 524.8 618.9 526.1 618.3 527 617.9 527.2 617.8 527.3 617.8 527.4 617.7 529.1 616.9 530.4 616.4 531.6 615.8 533.6 614.8 534.2 614.3 534.3 614.2M530.6 615.4C532 615 533.3 614.5 534.5 614L530.6 615.4Z",
"path": "M684.8 440.3H676.5C669.6 440.3 664 434.9 664 428.2V419.8H588.5C586 419.8 584.1 421.7 584.1 424.1 584.1 426.5 586 428.4 588.5 428.4H641.5A168 168 0 0 1 661.1 507.2C661.1 602.9 580.8 680.5 481.9 680.5 382.9 680.5 302.7 602.9 302.7 507.2 302.7 411.9 382.1 334.6 480.4 333.9L481.9 333.9H664V331.6C664 325 669.6 319.5 676.5 319.5H684.8C691.7 319.5 697.3 325 697.3 331.6V428.2C697.3 434.9 691.7 440.3 684.8 440.3ZM481.9 565.9C515.4 565.9 542.6 539.6 542.6 507.2 542.6 474.7 515.4 448.4 481.9 448.4 448.3 448.4 421.2 474.7 421.2 507.2 421.2 539.6 448.3 565.9 481.9 565.9ZM500 69.6C262.7 69.6 69.6 262.7 69.6 500 69.6 737.3 262.7 930.4 500 930.4 737.3 930.4 930.5 737.3 930.5 500 930.5 262.7 737.3 69.6 500 69.6ZM500 138C700.4 138 862 299.7 862 500 862 700.3 700.4 862 500 862 299.7 862 138 700.3 138 500 138 299.7 299.7 138 500 138Z",
"width": 1000
},
"search": [
"arweave-coin"
"turbo-coin-(1)-(2)"
]
},
{
"uid": "28fb2839a66640875ede1bd404024968",
"css": "license-1",
"code": 59471,
"uid": "0981706192e9c5d40d7f7f3ee748901a",
"css": "arweave",
"code": 59480,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M500 125C361.9 125 250 236.9 250 375 250 452.3 285 521.3 340.1 567.2 383.5 603.3 439.2 625 500 625 565.2 625 624.6 600.1 669.1 559.1 718.9 513.4 750 447.9 750 375 750 236.9 638.1 125 500 125ZM166.7 375C166.7 190.9 315.9 41.7 500 41.7 684.1 41.7 833.3 190.9 833.3 375 833.3 463.3 799 543.6 743 603.2L811.5 907.5C815.2 923.9 808.7 940.8 795 950.6 781.4 960.3 763.3 960.9 749 952.2L734.1 943C591.9 855.5 411.9 858.8 273.1 951.3 259.1 960.7 240.8 960.7 226.8 951.3 212.8 941.9 205.8 925 209.1 908.5L268 614.3C205.5 553.8 166.7 468.9 166.7 375ZM342.1 668.6L308.3 837.8C436.2 782.7 581.7 782.3 710.2 837.1L670.7 661.4C620.8 691.2 562.4 708.3 500 708.3 442.9 708.3 389.1 694 342.1 668.6Z",
"path": "M500 114.8C287.3 114.8 114.8 287.3 114.8 500S287.3 885.2 500 885.2C712.7 885.2 885.2 712.7 885.2 500S712.7 114.8 500 114.8ZM43.3 500C43.3 247.8 247.7 43.3 500 43.3S956.8 247.8 956.8 500C956.8 752.3 752.3 956.8 500 956.8S43.3 752.3 43.3 500ZM580.2 651.8C577.3 648.9 577.3 643.2 574.5 637.5 574.5 631.8 571.6 626 571.6 620.3 565.9 626 560.2 628.9 554.4 634.6S540.1 643.2 534.4 646.1C525.8 648.9 520.1 651.8 508.6 654.7 500 657.5 488.6 657.5 480 657.5 462.8 657.5 448.5 654.7 434.2 648.9S408.4 637.5 397 628.9C385.5 620.3 379.8 608.9 374.1 597.4S365.5 571.6 365.5 557.3C365.5 522.9 379.8 494.3 405.6 477.1 431.3 457.1 471.4 448.5 523 448.5H571.7V428.5C571.7 411.3 565.9 399.8 557.3 391.3 545.9 382.7 531.6 376.9 511.5 376.9 494.3 376.9 482.9 379.8 474.3 388.4S462.8 405.6 462.8 417H376.9C376.9 402.7 379.8 388.4 385.5 376.9S399.8 354 414.2 342.6C425.6 334 439.9 325.4 457.1 319.7S494.3 311.1 517.3 311.1C537.3 311.1 554.5 313.9 571.7 319.7S603.2 331.1 617.5 342.6C628.9 351.2 640.4 365.5 646.1 379.8S657.6 411.3 657.6 431.3V574.5C657.6 591.7 657.6 606 660.4 617.5S666.2 640.4 669 646.1V651.8H580.2ZM497.2 591.6C505.8 591.6 514.3 591.6 520.1 588.8 528.7 585.9 534.4 583 540.1 580.2S551.6 574.4 554.4 568.7C557.3 565.8 563 560.1 565.9 557.2V499.9H522.9C508.6 499.9 497.1 499.9 488.5 502.8S471.3 508.5 465.6 514.3C459.9 520 454.2 522.9 451.3 531.5 448.4 537.2 448.4 545.8 448.4 551.5 448.4 563 451.3 571.5 459.9 580.1S482.8 591.6 497.1 591.6ZM508.6 654.6C500 657.5 488.6 657.5 480 657.5 462.8 657.5 448.5 654.6 434.2 648.9S408.4 637.4 397 628.9C385.5 620.3 379.8 608.8 374.1 597.4S365.5 571.6 365.5 557.3C365.5 522.9 379.8 494.3 405.6 477.1 431.3 457.1 471.4 448.5 523 448.5H571.7V428.4C571.7 425.4 571.5 422.5 571.1 419.8 569.5 407.3 564.4 398.3 557.3 391.2 545.9 382.6 531.6 376.9 511.5 376.9 494.3 376.9 482.9 379.8 474.3 388.4S462.8 405.6 462.8 417H376.9C376.9 407.2 378.3 397.3 381 388.4 382.2 384.3 383.8 380.5 385.5 376.9 391.3 365.4 399.8 354 414.2 342.5 425.6 333.9 439.9 325.3 457.1 319.6S494.3 311 517.3 311C537.3 311 554.5 313.9 571.7 319.6S603.2 331.1 617.5 342.5C628.9 351.1 640.4 365.4 646.1 379.8S657.6 411.3 657.6 431.3V574.5C657.6 591.7 657.6 606 660.4 617.4 660.9 619.3 661.4 621.3 661.9 623.2 664.3 632.6 666.7 641.3 669 646.1V651.8H580.2C580 651.5 579.8 651.2 579.5 650.9 578.4 649.3 577.8 647.2 577.1 644.8 576.5 642.5 575.8 640 574.5 637.5 574.5 634.6 573.8 631.8 573.1 628.9S571.7 623.2 571.7 620.3C568.8 623.2 565.9 625.3 563.1 627.4S557.3 631.7 554.5 634.6C553.4 635.6 552.3 636.6 551.1 637.5 549.4 638.7 547.7 639.7 545.9 640.7 543.5 641.9 541.1 643 538.9 644 537.3 644.7 535.8 645.4 534.4 646 531.5 647 529 647.9 526.4 648.9 521.3 650.8 516.3 652.7 508.6 654.6ZM439.8 388.3C443.3 380.6 448.1 374 454 368.1 470.7 351.4 491.7 348.2 511.5 348.2 537.7 348.2 558.1 356 574.5 368.3L576.1 369.5 577.5 370.9C591.6 384.9 600.3 403.7 600.3 428.4V477.1H594.5V556.8L600.3 551.1V619.5C600.3 619.8 600.5 620.5 600.8 621.9 600.8 622.1 600.9 622.2 600.9 622.4 601 622.6 601.1 622.9 601.1 623.1H632.3C628.9 608.5 628.9 591.6 628.9 576.6 628.9 575.8 628.9 575.2 628.9 574.4V431.2C628.9 416.7 624.8 403.5 619.5 390.3 615.8 381.2 607.7 371 600.3 365.4L599.9 365.1 599.6 364.8C589.3 356.6 578.8 352.1 562.6 346.7 548.4 342 534.3 339.6 517.3 339.6 496.7 339.6 479.8 342.2 466.2 346.7 452.8 351.2 441.3 358 431.7 365.1 421.4 373.4 415.6 381.1 411.8 388.3H439.8ZM554.4 568.7L565.9 557.3V500H522.9C508.6 500 497.2 500 488.6 502.8S471.4 508.6 465.7 514.3C464.2 515.8 462.7 517.1 461.3 518.3 457.2 521.9 453.5 525.1 451.3 531.5 448.5 537.2 448.5 545.8 448.5 551.5 448.5 563 451.3 571.5 459.9 580.1S482.8 591.6 497.2 591.6C505.8 591.6 514.3 591.6 520.1 588.7 528.7 585.8 534.4 583 540.1 580.1S551.6 574.4 554.4 568.7ZM530.7 615.4C523.8 618.4 517.1 619.3 512.3 619.8 507 620.3 501.6 620.3 497.7 620.3H497.2C481 620.3 456.7 617.4 439.7 600.4 433 593.8 427.7 586.2 424.3 577.2 420.8 568.3 419.8 559.6 419.8 551.5V551.2C419.8 548.5 419.8 543.7 420.3 538.7 420.8 534.2 421.8 527.5 424.8 520.7 428 512.1 432.7 506.1 437.2 501.6 439.1 499.6 441.1 497.9 442.3 496.8 442.4 496.7 442.5 496.7 442.6 496.6 444 495.3 444.8 494.7 445.4 494 450 489.4 455.3 485.9 460.4 483.2 444.3 487.1 432 492.7 423.1 499.7L422.3 500.3 421.4 500.9C404.6 512.1 394.1 531.2 394.1 557.2 394.1 568.1 396.3 577.9 399.7 584.5 405.7 596.6 408.8 602 414.1 605.9 422.9 612.5 431.8 617.1 444.8 622.3 455.7 626.7 466.4 628.8 480 628.8 489.9 628.8 496.3 628.6 499.6 627.4L500.6 627.1 501.7 626.8C507.9 625.2 510.8 624.2 514.7 622.7 517 621.8 519.7 620.8 523.6 619.4 524.8 618.8 526.1 618.3 527.1 617.8 527.2 617.8 527.3 617.7 527.4 617.7 529.2 616.9 530.4 616.3 531.6 615.7 533.6 614.8 534.2 614.3 534.3 614.2ZM530.7 615.4C532 614.9 533.3 614.5 534.5 614Z",
"width": 1000
},
"search": [
"license"
"arweave"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// ignore_for_file: constant_identifier_names

/// Flutter icons ArDriveIcons
/// Flutter icons ArDriveIconsf
/// Copyright (C) 2024 by original authors @ fluttericon.com, fontello.com
/// This font was generated by FlutterIcon.com, which is derived from Fontello.
///
Expand All @@ -16,6 +14,7 @@
///
///
library;
// ignore_for_file: constant_identifier_names

import 'package:flutter/widgets.dart';

Expand Down Expand Up @@ -195,10 +194,10 @@ class ArDriveIconsData {
IconData(0xe855, fontFamily: _kFontFam, fontPackage: _kFontPkg);
static const IconData chevron_down =
IconData(0xe856, fontFamily: _kFontFam, fontPackage: _kFontPkg);
static const IconData arweave =
IconData(0xe858, fontFamily: _kFontFam, fontPackage: _kFontPkg);
static const IconData turbo_coin =
IconData(0xe85a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
static const IconData arweave_coin =
IconData(0xe85b, fontFamily: _kFontFam, fontPackage: _kFontPkg);
IconData(0xe859, fontFamily: _kFontFam, fontPackage: _kFontPkg);
static const IconData arrow_download =
IconData(0xe880, fontFamily: _kFontFam, fontPackage: _kFontPkg);
}
2 changes: 1 addition & 1 deletion packages/ardrive_ui/lib/src/styles/icons/icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class ArDriveIcons {
);

static ArDriveIcon arweaveCoin({double? size, Color? color}) => ArDriveIcon(
icon: ArDriveIconsData.arweave_coin,
icon: ArDriveIconsData.arweave,
size: size,
color: color,
);
Expand Down
2 changes: 2 additions & 0 deletions packages/ardrive_ui/test/src/components/check_box_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ void main() {
const checkbox = ArDriveCheckBox(
title: 'Title',
key: Key('checkbox'),
useNewIcons: false,
);

await tester.pumpWidget(
Expand Down Expand Up @@ -154,6 +155,7 @@ void main() {
title: 'Title',
key: Key('checkbox'),
isDisabled: true,
useNewIcons: false,
);

await tester.pumpWidget(
Expand Down
6 changes: 3 additions & 3 deletions test/blocs/upload_cubit_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,13 @@ void main() {
'should found the conflicting files correctly and set isAllFilesConflicting to true'
' when all files are conflicting',
build: () {
return getUploadCubitInstanceWith(tAllConflictingFiles);
},
act: (cubit) async {
when(() => mockArDriveAuth.getWalletAddress())
.thenAnswer((invocation) => Future.value(tWalletAddress));
when(() => mockArnsRepository.getAntRecordsForWallet(tWalletAddress!))
.thenAnswer((invocation) => Future.value([]));
return getUploadCubitInstanceWith(tAllConflictingFiles);
},
act: (cubit) async {
await cubit.startUploadPreparation();
await cubit.checkConflictingFiles();
},
Expand Down

0 comments on commit 0fb1188

Please sign in to comment.