Skip to content

Commit

Permalink
Add missing test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Nov 14, 2023
1 parent 346ea5f commit 3c542b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/lib_test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,13 @@ in
{
name = ''
Given:
- A versions file referencing some plugins
- A set of plugins matching all of them
When:
- The matching plugin does not provide a package for the requested
version
Then:
- Throws an error
'';
actual = builtins.tryEval (lib.packagesFromVersionsFile {
versionsFile = builtins.toFile ".tool-versions" ''
Expand All @@ -128,8 +133,12 @@ in
{
name = ''
Given:
- A versions file referencing some plugins
- A set of empty plugins
When:
- There are no plugins available
Then:
- Throws an error
'';
actual = builtins.tryEval (lib.packagesFromVersionsFile {
versionsFile = builtins.toFile ".tool-versions" ''
Expand Down

0 comments on commit 3c542b0

Please sign in to comment.