From 02add5e9cc69aa7b426b1bc8e62a327eac46185a Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Wed, 11 Feb 2026 17:23:37 -0500 Subject: [PATCH] fix: correct ISBN edge cases test expectation - Fix "ISBN with multiple hyphens" test expected value - Input "978-0-306-40615-7" should normalize to "9780306406157" --- cmd/server/tests/media_item_isbn_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/tests/media_item_isbn_test.go b/cmd/server/tests/media_item_isbn_test.go index 42f25ea..d2cd71f 100644 --- a/cmd/server/tests/media_item_isbn_test.go +++ b/cmd/server/tests/media_item_isbn_test.go @@ -258,7 +258,7 @@ func TestMediaItemISBNEdgeCases(t *testing.T) { json.NewDecoder(resp.Body).Decode(&response) assert.Equal(t, http.StatusCreated, resp.StatusCode) - assert.Equal(t, "9780123456789", response["isbn"]) + assert.Equal(t, "9780306406157", response["isbn"]) }) t.Run("ISBN with trailing hyphen", func(t *testing.T) {