Rename getName helper to getPluginName.
This commit is contained in:
parent
fe3073ddaf
commit
2547713ec4
2 changed files with 11 additions and 11 deletions
|
@ -21,25 +21,25 @@ let
|
|||
in
|
||||
{
|
||||
helpers = {
|
||||
getName = {
|
||||
getPluginName = {
|
||||
testName = {
|
||||
expr = lazyUtils.helpers.getName (nullPlugin // { name = "nameTest"; });
|
||||
expr = lazyUtils.helpers.getPluginName (nullPlugin // { name = "nameTest"; });
|
||||
expected = "nameTest";
|
||||
};
|
||||
testShort = {
|
||||
expr = lazyUtils.helpers.getName (nullPlugin // { short = "shortTest"; });
|
||||
expr = lazyUtils.helpers.getPluginName (nullPlugin // { short = "shortTest"; });
|
||||
expected = "shortTest";
|
||||
};
|
||||
testDir = {
|
||||
expr = lazyUtils.helpers.getName (nullPlugin // { dir = ./empty.txt; });
|
||||
expr = lazyUtils.helpers.getPluginName (nullPlugin // { dir = ./empty.txt; });
|
||||
expected = "empty.txt";
|
||||
};
|
||||
testDrv = {
|
||||
expr = lazyUtils.helpers.getName (nullPlugin // { dir = miniDrv; });
|
||||
expr = lazyUtils.helpers.getPluginName (nullPlugin // { dir = miniDrv; });
|
||||
expected = "test";
|
||||
};
|
||||
testInvalidInput = {
|
||||
expr = lazyUtils.helpers.getName { };
|
||||
expr = lazyUtils.helpers.getPluginName { };
|
||||
expectedError = {
|
||||
type = "ThrownError";
|
||||
# For some reason there is whitespace after the newline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue