Skip to content

Commit

Permalink
test: Add test for same config as polling
Browse files Browse the repository at this point in the history
  • Loading branch information
ztalbot2000 committed Feb 10, 2021
1 parent d6dfcb1 commit 4eb8c09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/trueTypeOf.js
Expand Up @@ -49,6 +49,16 @@ describe( "Testing trueTypeOf", ( ) =>
assert.equal( result, expectedResult, "trueTypeOf( " + data + " ) returned: " + result + " expected: " + expectedResult );
});

it( "trueTypeOf should correctly identify a polling config", ( ) =>
{
let data = [ { "characteristic": "active", "timeout": 5, "interval": 3},
{ "characteristic": "On", "timeout": 8, "interval": 4}
];
let expectedResult = Array;
let result = trueTypeOf( data );
assert.equal( result, expectedResult, "trueTypeOf( " + data + " ) returned: " + result + " expected: " + expectedResult );
});

it( "trueTypeOf should correctly identify an empty object ", ( ) =>
{
let data = undefined
Expand Down

0 comments on commit 4eb8c09

Please sign in to comment.