@@ -54,26 +54,32 @@ public async void NowTest()
5454
5555 [ Fact ]
5656 public async void InfoTest ( ) {
57- _api . SetResult ( @"{result: {cake: 'lie'}}" ) ;
57+ JObject serverInfo = new JObject { { "kuzzle" , "installed" } } ;
58+ _api . SetResult ( new JObject { { "result" , new JObject { { "serverInfo" , serverInfo } } } } ) ;
5859
59- await _serverController . InfoAsync ( ) ;
60+ JObject res = await _serverController . InfoAsync ( ) ;
6061
6162 _api . Verify ( new JObject {
6263 { "controller" , "server" } ,
6364 { "action" , "info" }
6465 } ) ;
66+ Assert . Equal < JObject > ( serverInfo , res ) ;
6567 }
6668
6769 [ Fact ]
6870 public async void ConfigTest ( ) {
69- _api . SetResult ( @"{result: {cake : 'lie '}}" ) ;
71+ _api . SetResult ( @"{result: {limits : 'none '}}" ) ;
7072
71- await _serverController . GetConfigAsync ( ) ;
73+ JObject res = await _serverController . GetConfigAsync ( ) ;
7274
7375 _api . Verify ( new JObject {
7476 { "controller" , "server" } ,
7577 { "action" , "getConfig" }
7678 } ) ;
79+ Assert . Equal < JObject > (
80+ new JObject { { "limits" , "none" } } ,
81+ res
82+ ) ;
7783 }
7884
7985 [ Fact ]
@@ -97,7 +103,7 @@ public async void GetStatsTest(){
97103 }
98104
99105 [ Fact ]
100- public async void GetiAllStatsTest ( ) {
106+ public async void GetAllStatsTest ( ) {
101107 _api . SetResult ( @"{ result: { cake: 'lie'} }" ) ;
102108
103109 JObject res = await _serverController . GetAllStatsAsync ( ) ;
0 commit comments