package task

import "testing"

func TestDefinitionOwnsTaskPersistenceAndDefaults(t *testing.T) {
	definition := Definition()
	if definition.Name != "task" || len(definition.Migrations) != 1 || len(definition.TimedTasks) != 2 {
		t.Fatalf("task definition = %#v", definition)
	}
}
