Created
June 21, 2022 11:32
-
-
Save sdondley/252ffff40e9779bb09388a3e009f5dcd to your computer and use it in GitHub Desktop.
Test for Distribution::Resources::Menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6.d; | |
use Test; | |
use Injector; | |
use Distribution::Resources::Menu; | |
use Distribution::Resources::Distribution; | |
BEGIN { | |
bind dist(), :name<dist>; | |
} | |
my ResourceMenu $c is injected; | |
is $c.resources.sort, 'testing/testing2/testing3/test.txt testing/testing2/testing3/test2.txt testing/testing5/test3.txt', | |
'gets resources'; | |
$c.build-menu; | |
done-testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment