I still think this would be more readable as
```
this.sinon.stub(MockMozL10n, 'get').returns(undefined);
...
assert.equal(telType.textContent, 'my-custom-type', 'should default to type when no localization available')
```