Appease validation warning about "Unsafe assignment to innerHTML"

This doesn't apply to the webextension but hasn't been factored out in
the build step yet.
This commit is contained in:
Arlo Breault 2019-06-26 18:30:24 -04:00
parent ff6f91f3da
commit 055d5f1824
2 changed files with 8 additions and 2 deletions

View file

@ -4,6 +4,7 @@ jasmine tests for Snowflake UI
document =
getElementById: (id) -> {}
createTextNode: (txt) -> txt
describe 'UI', ->
@ -27,7 +28,9 @@ describe 'UI', ->
it 'sets status message when in debug mode', ->
u = new DebugUI()
u.$status = { innerHTML: '' }
u.$status =
innerHTML: ''
appendChild: (txt) -> @innerHTML = txt
u.setStatus('test')
expect(u.$status.innerHTML).toEqual 'Status: test'