mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-05-22 15:48:44 -05:00
14 lines
313 B
Go
14 lines
313 B
Go
package models
|
|
|
|
import (
|
|
"github.com/forceu/gokapi/internal/test"
|
|
"testing"
|
|
)
|
|
|
|
func TestUploadStatus_ToJson(t *testing.T) {
|
|
status := UploadStatus{}
|
|
output, err := status.ToJson()
|
|
test.IsNil(t, err)
|
|
test.IsEqualString(t, string(output), "{\"chunkid\":\"\",\"currentstatus\":0,\"type\":\"uploadstatus\"}")
|
|
}
|