Really add toJSON test case
This commit is contained in:
parent
38147f81a9
commit
95d4b9406d
|
@ -0,0 +1,8 @@
|
|||
with builtins;
|
||||
|
||||
let f = toFile "foo" "foo contents"; # /nix/store/pqwdc5m06lxl8gmzcd26ifwsdhq9fj7k-foo
|
||||
objA = { a = 15; b = substring 1 3 (dirOf f); };
|
||||
objB = { a = 42; b = "hello"; };
|
||||
in [ (hasContext (toJSON objA))
|
||||
(hasContext (toJSON objB))
|
||||
]
|
Loading…
Reference in New Issue