DAVFoundation / dav-js

Enable integration of JavaScript, TypeScript, and Node.js code with the DAV Network
https://developers.dav.network/
MIT License
75 stars 50 forks source link

Add Serialize and deserialize methods to NeedParams.ts #137

Closed abdchehadeh closed 5 years ago

abdchehadeh commented 5 years ago

Description

Create tests for serialize and deserialize for src/drone-charging/NeedParams.ts using Jest

Related Issue

Issue #97

Motivation and Context

Increase the test coverage.

How Has This Been Tested?

using

npm run jest

Screenshots (if appropriate):

Types of changes

Checklist:

> dav-js@0.1.19 jest /home/abedo/davFoundation/dav-js > gulp jest

[21:27:09] Using gulpfile ~/davFoundation/dav-js/gulpfile.js [21:27:09] Starting 'jest'... PASS src/drone-charging/NeedParams.test.ts NeedParams class serialize method should return serialized NeedParams object with the current values (8ms) deserialize method should return a NeedParams instance (1ms) should return deserialize NeedParams instance with the current parameters (1ms)

mariolo1985 commented 5 years ago

Thanks for another PR @abdchehadeh 👍