summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/user_settings/ui/user_settings_icon.spec.js
blob: b06cf0333422a2e30014c87c15e32988e97cabe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
describeComponent('user_settings/ui/user_settings_icon', function () {
  'use strict';

  beforeEach(function () {
    this.setupComponent();
  });

  it('toggles the user settings box when clicked', function () {
    var toggleEvent = spyOnEvent(document, Pixelated.events.ui.userSettingsBox.toggle);
    this.$node.click();
    expect(toggleEvent).toHaveBeenTriggeredOn(document);
  });
});