Skip to content

Commit

Permalink
add test for device search
Browse files Browse the repository at this point in the history
  • Loading branch information
gl2748 committed Jun 20, 2018
1 parent 338630f commit d642ddb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions routes/adminHandlers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ describe('adminHandlers listSignups', () => {
name: 'fingerprint.device.renderer',
value: 'fingerprint_renderer_test',
},
{
name: 'fingerprint.device',
value: 'fingerprint_device_test',
},
],
},
});
Expand Down Expand Up @@ -139,5 +143,10 @@ describe('adminHandlers listSignups', () => {
comparator: '=',
logic: { [regexp]: 'fingerprint_renderer_test' },
});
expect(q[18].fingerprint).toEqual({
attribute: { val: "fingerprint -> '$.device'" },
comparator: '=',
logic: { [regexp]: 'fingerprint_device_test' },
});
});
});

0 comments on commit d642ddb

Please sign in to comment.