-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement changing freq (interval) property after instance creation
lib/sensor.js Move median calculation function definition outside of the constructor function Move latest median value storage to closure scope, to provide history between calls Add read only, test mode only, state property to expose internal instance state information Use a local (constructor function scope) variable to access the private state properties Replace (in constructor) references to the private state information with the local variable test/sensor.js Add test cases for freq, threshold, id, limit properties Extend expected instance shape information Expand testing for analog noise filtering Expand testing for data and change events Remove some duplicate tests (data) Streamline instance shape tests using deep object compare Require loadah module to get access to cloneDeep method Add function to create object containing the current instance shape information Fix test for unexpected properties in sensor instance Add comments to document the test sequences Add closing comment for function definitions Add some line breaks for readability, and lint nit pick.
- Loading branch information
Showing
2 changed files
with
547 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.