ultisuite-backend/internal/api/drive/blank_office_test.go
R3D347HR4Y 0466a1c169
Some checks are pending
CI / Go tests (push) Waiting to run
CI / Integration tests (push) Waiting to run
CI / DB migrations (push) Waiting to run
wow
2026-06-11 01:22:52 +02:00

24 lines
560 B
Go

package drive
import "testing"
func TestBlankOfficeFileDrawing(t *testing.T) {
content, ct := blankOfficeFile(NewFileDrawing)
if content == nil || len(content) == 0 {
t.Fatal("expected blank excalidraw content")
}
if ct != "application/json" {
t.Fatalf("content type = %q, want application/json", ct)
}
}
func TestBlankOfficeFileUnknownKind(t *testing.T) {
content, ct := blankOfficeFile(NewFileKind("drawing"))
if content == nil {
t.Fatal("NewFileKind drawing should produce content")
}
if ct == "" {
t.Fatal("expected content type")
}
}