|
|
@ -16,6 +16,7 @@ defmodule DecentralisedBookIndex.Sync.DataTransformers.AuthorSyncTest do
|
|
|
|
id: "889a323e-d104-4b5d-b276-dad5a9b1da9d",
|
|
|
|
id: "889a323e-d104-4b5d-b276-dad5a9b1da9d",
|
|
|
|
name: "Author",
|
|
|
|
name: "Author",
|
|
|
|
description: "Something",
|
|
|
|
description: "Something",
|
|
|
|
|
|
|
|
avatar_url: "/images/avatar.png",
|
|
|
|
author_alias_registry_id: nil
|
|
|
|
author_alias_registry_id: nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -24,6 +25,7 @@ defmodule DecentralisedBookIndex.Sync.DataTransformers.AuthorSyncTest do
|
|
|
|
|
|
|
|
|
|
|
|
assert author.id == saved_author.id
|
|
|
|
assert author.id == saved_author.id
|
|
|
|
assert author.name == saved_author.name
|
|
|
|
assert author.name == saved_author.name
|
|
|
|
|
|
|
|
assert author.avatar_url == saved_author.avatar_url
|
|
|
|
assert nil != saved_author.author_alias_registry_id
|
|
|
|
assert nil != saved_author.author_alias_registry_id
|
|
|
|
assert server.id == saved_author.dbi_server_id
|
|
|
|
assert server.id == saved_author.dbi_server_id
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -37,6 +39,7 @@ defmodule DecentralisedBookIndex.Sync.DataTransformers.AuthorSyncTest do
|
|
|
|
id: author.id,
|
|
|
|
id: author.id,
|
|
|
|
name: "Author2",
|
|
|
|
name: "Author2",
|
|
|
|
description: "Something2",
|
|
|
|
description: "Something2",
|
|
|
|
|
|
|
|
avatar_url: "/images/avatar.png",
|
|
|
|
author_alias_registry_id: nil
|
|
|
|
author_alias_registry_id: nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -46,6 +49,7 @@ defmodule DecentralisedBookIndex.Sync.DataTransformers.AuthorSyncTest do
|
|
|
|
assert author.id == saved_author.id
|
|
|
|
assert author.id == saved_author.id
|
|
|
|
assert author_attrs.name == saved_author.name
|
|
|
|
assert author_attrs.name == saved_author.name
|
|
|
|
assert author_attrs.description == saved_author.description
|
|
|
|
assert author_attrs.description == saved_author.description
|
|
|
|
|
|
|
|
assert author_attrs.avatar_url == saved_author.avatar_url
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|