Commit 57fa3b29 authored by Robert Knight's avatar Robert Knight

Add test for `isActive` when `mode == "auto"`

parent 21648599
...@@ -416,6 +416,10 @@ describe('annotator/config/settingsFrom', () => { ...@@ -416,6 +416,10 @@ describe('annotator/config/settingsFrom', () => {
input: { mode: 'auto' }, input: { mode: 'auto' },
expectedResult: { mode: 'auto' }, expectedResult: { mode: 'auto' },
}, },
{
input: { mode: 'auto', isActive: fakeIsActive },
expectedResult: { mode: 'auto' },
},
{ {
input: { mode: 'manual', isActive: 42 }, input: { mode: 'manual', isActive: 42 },
expectedResult: { mode: 'manual', isActive: undefined }, expectedResult: { mode: 'manual', isActive: undefined },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment