Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/version_check_image_spec.js')
-rw-r--r--spec/javascripts/version_check_image_spec.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/javascripts/version_check_image_spec.js b/spec/javascripts/version_check_image_spec.js
deleted file mode 100644
index 0e69fcc4c5f..00000000000
--- a/spec/javascripts/version_check_image_spec.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import $ from 'jquery';
-import VersionCheckImage from '~/version_check_image';
-import ClassSpecHelper from './helpers/class_spec_helper';
-
-describe('VersionCheckImage', function() {
- describe('bindErrorEvent', function() {
- ClassSpecHelper.itShouldBeAStaticMethod(VersionCheckImage, 'bindErrorEvent');
-
- beforeEach(function() {
- this.imageElement = $('<div></div>');
- });
-
- it('registers an error event', function() {
- spyOn($.prototype, 'on');
- spyOn($.prototype, 'off').and.callFake(function() {
- return this;
- });
-
- VersionCheckImage.bindErrorEvent(this.imageElement);
-
- expect($.prototype.off).toHaveBeenCalledWith('error');
- expect($.prototype.on).toHaveBeenCalledWith('error', jasmine.any(Function));
- });
-
- it('hides the imageElement on error', function() {
- spyOn($.prototype, 'hide');
-
- VersionCheckImage.bindErrorEvent(this.imageElement);
-
- this.imageElement.trigger('error');
-
- expect($.prototype.hide).toHaveBeenCalled();
- });
- });
-});