summaryrefslogtreecommitdiff
path: root/spec/javascripts/dashboard_spec.js.es6
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-02-14 17:43:03 -0600
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-02-15 13:31:18 -0600
commitf1710bd131a040ef9104a1ff1a804b35c9568550 (patch)
tree40e4e0dbe0593a1cd291bee73f3142b4ff6ecfc6 /spec/javascripts/dashboard_spec.js.es6
parent8c1b41f12b5ec8dd3dd2547d3ad729e71c4ebadd (diff)
downloadgitlab-ce-f1710bd131a040ef9104a1ff1a804b35c9568550.tar.gz
Delete sidebar specs and fixtures; update shortcuts_spec to check page title
Diffstat (limited to 'spec/javascripts/dashboard_spec.js.es6')
-rw-r--r--spec/javascripts/dashboard_spec.js.es637
1 files changed, 0 insertions, 37 deletions
diff --git a/spec/javascripts/dashboard_spec.js.es6 b/spec/javascripts/dashboard_spec.js.es6
deleted file mode 100644
index c0bdb89ed63..00000000000
--- a/spec/javascripts/dashboard_spec.js.es6
+++ /dev/null
@@ -1,37 +0,0 @@
-/* eslint-disable no-new */
-
-require('~/sidebar');
-require('~/lib/utils/text_utility');
-
-((global) => {
- describe('Dashboard', () => {
- const fixtureTemplate = 'static/dashboard.html.raw';
-
- function todosCountText() {
- return $('.js-todos-count').text();
- }
-
- function triggerToggle(newCount) {
- $(document).trigger('todo:toggle', newCount);
- }
-
- preloadFixtures(fixtureTemplate);
- beforeEach(() => {
- loadFixtures(fixtureTemplate);
- new global.Sidebar();
- });
-
- it('should update todos-count after receiving the todo:toggle event', () => {
- triggerToggle(5);
- expect(todosCountText()).toEqual('5');
- });
-
- it('should display todos-count with delimiter', () => {
- triggerToggle(1000);
- expect(todosCountText()).toEqual('1,000');
-
- triggerToggle(1000000);
- expect(todosCountText()).toEqual('1,000,000');
- });
- });
-})(window.gl);