fix hound complains

pull/2478/head
Mihail Maxacov 10 years ago
parent 18886bfdc1
commit baa1982aac
  1. 7
      frontend/app/ui_components/inplace-editor-directive.js
  2. 12
      frontend/tests/unit/tests/work_packages/directives/inplace-editor-directive-test.js

@ -26,7 +26,9 @@
// See doc/COPYRIGHT.rdoc for more details.
//++
module.exports = function($timeout, FocusHelper, PathHelper, InplaceEditorDispatcher, OverviewTabInplaceEditorConfig) {
module.exports = function(
$timeout, FocusHelper, PathHelper,
InplaceEditorDispatcher, OverviewTabInplaceEditorConfig) {
return {
restrict: 'A',
transclude: false,
@ -212,7 +214,8 @@ module.exports = function($timeout, FocusHelper, PathHelper, InplaceEditorDispat
}
function getDisplayTemplateUrl() {
return '/templates/components/inplace_editor/display/' + ($scope.displayStrategy || 'default') + '.html';
return '/templates/components/inplace_editor/display/' +
($scope.displayStrategy || 'default') +'.html';
}
}

@ -302,7 +302,10 @@ describe('inplaceEditor Directive', function() {
describe('startEditing', function() {
var registerActiveEditorScopeSpy;
beforeEach(function() {
registerActiveEditorScopeSpy = sinon.spy(OverviewTabInplaceEditorConfig, 'registerActiveEditorScope');
registerActiveEditorScopeSpy = sinon.spy(
OverviewTabInplaceEditorConfig,
'registerActiveEditorScope'
);
elementScope.startEditing();
});
it('should register the scope to a list of actives', function() {
@ -312,7 +315,10 @@ describe('inplaceEditor Directive', function() {
describe('discardEditing', function() {
var deregisterActiveEditorScopeSpy;
beforeEach(function() {
deregisterActiveEditorScopeSpy = sinon.spy(OverviewTabInplaceEditorConfig, 'deregisterActiveEditorScope');
deregisterActiveEditorScopeSpy = sinon.spy(
OverviewTabInplaceEditorConfig,
'deregisterActiveEditorScope'
);
elementScope.discardEditing();
});
it('should register the scope to a list of actives', function() {
@ -356,7 +362,7 @@ describe('inplaceEditor Directive', function() {
cb({
status: 500,
statusText: 'Nope'
})
});
}
};
});

Loading…
Cancel
Save