Skip to content

Add ID conversion check in CharacterFactory - #551

Open
glmdgrielson wants to merge 5 commits into
farirpgs:masterfrom
glmdgrielson:bad-id
Open

Add ID conversion check in CharacterFactory#551
glmdgrielson wants to merge 5 commits into
farirpgs:masterfrom
glmdgrielson:bad-id

Conversation

@glmdgrielson

Copy link
Copy Markdown
Contributor

This should fix issue #536.

✅ Changes

  • fix: Fix JSON having invalid/missing ID values.

🌄 Context

As per issue #536, Fari currently makes no checks on the imported JSON and accepts it without question.

🔒Checklist

  • I tested my work on the feature environment

💅 Examples

  • A test case has been added in CharacterFactory.test.tsx.

I know this is bad practice, but the whole point of this test is that
it's working on bad data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants