Created tests to check that the serialize and deserialize methods work as expected.
Description
Function serialize in class BidParams must return a JSON object that contains all properties defined in the BidParams instance.
Function deserialize in class BidParams receives a JSON string and must initialize all the properties of the BidParams instance with the values in the JSON string.
Motivation and Context
This pull request adds more test coverage to the project.
How Has This Been Tested?
I typed npm run jest in the console to run the entire test suite.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Created tests to check that the serialize and deserialize methods work as expected.
Description
Function
serialize
in class BidParams must return a JSON object that contains all properties defined in the BidParams instance.Function
deserialize
in class BidParams receives a JSON string and must initialize all the properties of the BidParams instance with the values in the JSON string.Motivation and Context
This pull request adds more test coverage to the project.
How Has This Been Tested?
I typed
npm run jest
in the console to run the entire test suite.Types of changes
Checklist: