Implement D&D spells extraction mapping
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
package spells
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
|
||||
"gitea.maximumdirect.net/eric/notarius/internal/framework/pipeline"
|
||||
)
|
||||
|
||||
@@ -93,13 +91,3 @@ func TestRegisterNilRegistryReturnsError(t *testing.T) {
|
||||
t.Fatalf("Register(nil) error = %q, want registry context", err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
func TestExtractReportsNotImplemented(t *testing.T) {
|
||||
_, err := New().Extract(context.Background(), contracts.ExtractionRequest{})
|
||||
if err == nil {
|
||||
t.Fatal("Extract() error = nil, want error")
|
||||
}
|
||||
if !strings.Contains(err.Error(), "dnd spells") || !strings.Contains(err.Error(), "not implemented") {
|
||||
t.Fatalf("Extract() error = %q, want not implemented D&D spells context", err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user