### ----------------------------------------------------
### -- App::Zef-Deps
### -- Licenses: Artistic-2.0
### -- Authors: Will Coleda
### -- File: t/json.t
### ----------------------------------------------------
#!/usr/bin/env raku

use Test;
use App::Zef-Deps;

plan 1;

my $out = MAIN-handler(['zef',], :json);

my $expected = q:to/OUT/;
[
  {
    "deps": [
      {
        "from": "Raku",
        "name": "NativeCall"
      },
      {
        "from": "Raku",
        "name": "Test"
      }
    ],
    "from": "Raku",
    "name": "zef"
  }
]
OUT

is $out, $expected.chomp, 'zef dependencies as json';


