Skip to content

Instantly share code, notes, and snippets.

@sdondley
Created June 21, 2022 11:32
Show Gist options
  • Save sdondley/252ffff40e9779bb09388a3e009f5dcd to your computer and use it in GitHub Desktop.
Save sdondley/252ffff40e9779bb09388a3e009f5dcd to your computer and use it in GitHub Desktop.
Test for Distribution::Resources::Menu
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