Remove tests referring to BadgeUI

Since that's been overhauled.  The whole ui.spec.js file probably needs
redoing.
This commit is contained in:
Arlo Breault 2019-07-15 09:32:03 +02:00 committed by Cecylia Bocovich
parent 0f33546fec
commit a164d61f16

View file

@ -1,4 +1,4 @@
/* global expect, it, describe, spyOn, DebugUI, BadgeUI */ /* global expect, it, describe, spyOn, DebugUI */
/* eslint no-redeclare: 0 */ /* eslint no-redeclare: 0 */
/* /*
@ -30,20 +30,6 @@ describe('UI', function() {
expect(u.$msglog).not.toBeNull(); expect(u.$msglog).not.toBeNull();
}); });
it('is not debug mode when badge exists', function() {
var u;
spyOn(document, 'getElementById').and.callFake(function(id) {
if ('badge' === id) {
return {};
}
return null;
});
u = new BadgeUI();
expect(document.getElementById).toHaveBeenCalled();
expect(document.getElementById.calls.count()).toEqual(1);
expect(u.$badge).not.toBeNull();
});
it('sets status message when in debug mode', function() { it('sets status message when in debug mode', function() {
var u; var u;
u = new DebugUI(); u = new DebugUI();
@ -66,16 +52,6 @@ describe('UI', function() {
expect(u.$msglog.className).toEqual(''); expect(u.$msglog.className).toEqual('');
}); });
it('sets badge css correctly for non-debug mode', function() {
var u;
u = new BadgeUI();
u.$badge = {};
u.setActive(true);
expect(u.$badge.className).toEqual('active');
u.setActive(false);
expect(u.$badge.className).toEqual('');
});
it('logs to the textarea correctly when debug mode', function() { it('logs to the textarea correctly when debug mode', function() {
var u; var u;
u = new DebugUI(); u = new DebugUI();