Really add toJSON test case

This commit is contained in:
Doug Beardsley 2018-12-05 15:01:55 -05:00
parent 38147f81a9
commit 95d4b9406d
1 changed files with 8 additions and 0 deletions

View File

@ -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))
]