diff --git a/network/wifi_test.go b/network/wifi_test.go index 744d35b5..79582c1c 100644 --- a/network/wifi_test.go +++ b/network/wifi_test.go @@ -30,3 +30,14 @@ func TestNewWiFi(t *testing.T) { t.Error("unable to build net wifi struct") } } + +func TestWiFiMarshalJSON(t *testing.T) { + exampleWiFi := buildExampleWiFi() + json, err := exampleWiFi.MarshalJSON() + if err != nil { + t.Error(err) + } + if len(json) <= 0 { + t.Error("unable to marshal JSON from WiFi struct") + } +}