fix(tests): fix broken unittest due to merge conflict

pull/3531/head
carl bergquist 10 years ago
parent 12d65bfdfa
commit c48da9b5cf
  1. 1
      public/app/features/dashboard/rowCtrl.js
  2. 2
      public/test/specs/row-ctrl-specs.js

@ -41,7 +41,6 @@ function (angular, _, config) {
$scope.dashboard.addPanel(panel, $scope.row); $scope.dashboard.addPanel(panel, $scope.row);
}; };
$scope.deleteRow = function() { $scope.deleteRow = function() {
function delete_row() { function delete_row() {
$scope.dashboard.rows = _.without($scope.dashboard.rows, $scope.row); $scope.dashboard.rows = _.without($scope.dashboard.rows, $scope.row);

@ -19,7 +19,7 @@ define([
ctx.scope.row = ctx.scope.dashboard.rows[0]; ctx.scope.row = ctx.scope.dashboard.rows[0];
ctx.scope.appEvent = sinon.spy(); ctx.scope.appEvent = sinon.spy();
ctx.scope.delete_row(); ctx.scope.deleteRow();
}); });
it('should NOT ask for confirmation', function () { it('should NOT ask for confirmation', function () {

Loading…
Cancel
Save