Skip to content

Commit

Permalink
🧪 update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkac committed Feb 7, 2024
1 parent bc6a74e commit 06b76a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/metadata/slots/template/generate_token.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn add_metadata_members_(ref metadata: JsonMetadata, data: @TemplateData) {
metadata.add_member('description', *data.token_description);
metadata.add_member('external_url', *data.external_url);
metadata.add_member('youtube_url', *data.youtube_url);
metadata.add_member('image_data', svg::generate(data));
metadata.add_member('image', svg::generate(data));
}

#[inline(always)]
Expand Down
7 changes: 4 additions & 3 deletions src/tests/test_slot_metadata.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use test::test_utils::assert_eq;
use metadata::metadata::slots::banegas_farm::contract::BanegasFarmUri;
use metadata::metadata::slots::las_delicias::contract::LasDeliciasUri;
use metadata::metadata::slots::manjarisoa::contract::ManjarisoaUri;
use metadata::metadata::slots::karathuru::contract::KarathuruUri;
use metadata::metadata::slots::lorem_ipsum::contract::LoremIpsumUri;
use metadata::tests::mocks::project::ProjectMock;
use metadata::interfaces::slot_descriptor::{
Expand Down Expand Up @@ -50,7 +51,7 @@ use metadata::components::component::sft::badges::badge_XS::Component as SFTBadg
use metadata::components::component::backgrounds::bg_banegas_farm::Component as ParrotBackground;
use metadata::components::component::backgrounds::bg_las_delicias::Component as SwampBackground;
use metadata::components::component::backgrounds::bg_manjarisoa::Component as MonkeyBackground;
use metadata::components::component::backgrounds::bg_water::Component as WaterBackground;
use metadata::components::component::backgrounds::bg_karathuru::Component as WaterBackground;
use metadata::components::provider::ComponentProvider;

use metadata::tests::utils;
Expand Down Expand Up @@ -128,7 +129,7 @@ fn test_construct_slot_uri() {
let slot = 1_u256;

let metadata = ISlotDescriptorLibraryDispatcher {
class_hash: as_class(BanegasFarmUri::TEST_CLASS_HASH)
class_hash: as_class(KarathuruUri::TEST_CLASS_HASH)
};

set_contract_address(project_address);
Expand All @@ -148,7 +149,7 @@ fn test_construct_token_uri() {
let token_id = 1_u256;

let metadata = ISlotDescriptorLibraryDispatcher {
class_hash: as_class(LoremIpsumUri::TEST_CLASS_HASH)
class_hash: as_class(KarathuruUri::TEST_CLASS_HASH)
};

set_contract_address(project_address);
Expand Down

0 comments on commit 06b76a9

Please sign in to comment.