In all of these tests, why don't you just check *both* cases of `getSelectedText()` ?

```
    expect(myEditor.getSelectedText()).toEqual(...);
    expect(myEditor.getSelectedText(true)).toEqual(...);
```