Added route for saving device info #7

Merged
duplingnedim merged 3 commits from save-device-info into main 2023-09-14 08:18:58 +02:00
8 changed files with 1 additions and 0 deletions
Showing only changes of commit dcf1652dd9 - Show all commits

View File

@@ -36,6 +36,7 @@ func runTestServer() *httptest.Server {
func TestSaveDeviceInfofunc(t *testing.T) {
ts := runTestServer()
defer ts.Close()
defer shared.CloseDb()
t.Run("it should return 400 when JSON payload is invalid", func(t *testing.T) {
payload := []byte(`{"InvalidPayload": `)