aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/query/injections/nix/test-nix-injections.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/query/injections/nix/test-nix-injections.nix b/tests/query/injections/nix/test-nix-injections.nix
index b358326ab..7505398e6 100644
--- a/tests/query/injections/nix/test-nix-injections.nix
+++ b/tests/query/injections/nix/test-nix-injections.nix
@@ -1,7 +1,7 @@
# NOTE: This file is for testing queries. If evaluated with nix, this will probably error.
-{ pkgs, stdenv }: let
+{ pkgs, stdenv, lib }: let
match = builtins.match;
-in {
+in {
regex = builtins.match "^.*[{](.+)[}].*$" "blahblah {something} blahblah" [ "something" ];
regex2 = match "^.*[{](.+)[}].*$" "blahblah {something} blahblah" [ "something" ];
@@ -12,7 +12,7 @@ in {
echo "bar" > $out/foo.txt
'';
};
-
+
drv2 = pkgs.writeShellApplication {
name = "shellApp";
buildInputs = [];
@@ -62,7 +62,7 @@ in {
}
'';
- drv12 = {
+ drv12 = lib.nixos.runTest {
nodes = null;
testScript = ''
print("Hello world!");