summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/page/user_settings_icon.spec.js
blob: 60e06d3679afb26b526d3a082d0ae46839acd815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
describeComponent('page/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);
  });
});