Fix eslint for tests

This commit is contained in:
Damien CORNEAU 2016-07-19 19:00:43 +09:00
parent 7b1da053cc
commit 0364ad48d0
4 changed files with 8 additions and 6 deletions

View file

@ -243,6 +243,11 @@ module.exports = function(grunt) {
]
},
test: {
options: {
rules: {
'no-undef': 0
}
},
src: ['test/spec/{,*/}*.js']
}
},

View file

@ -3,14 +3,13 @@
describe('Controller: MainCtrl', function() {
beforeEach(module('zeppelinWebApp'));
var MainCtrl;
var scope;
var rootScope;
beforeEach(inject(function($controller, $rootScope) {
rootScope = $rootScope;
scope = $rootScope.$new();
MainCtrl = $controller('MainCtrl', {
$controller('MainCtrl', {
$scope: scope
});
}));

View file

@ -3,7 +3,6 @@
describe('Controller: NotebookCtrl', function() {
beforeEach(module('zeppelinWebApp'));
var NotebookCtrl;
var scope;
var websocketMsgSrvMock = {
@ -24,7 +23,7 @@ describe('Controller: NotebookCtrl', function() {
beforeEach(inject(function($controller, $rootScope) {
scope = $rootScope.$new();
NotebookCtrl = $controller('NotebookCtrl', {
$controller('NotebookCtrl', {
$scope: scope,
websocketMsgSrv: websocketMsgSrvMock,
baseUrlSrv: baseUrlSrvMock

View file

@ -4,7 +4,6 @@ describe('Controller: ParagraphCtrl', function() {
beforeEach(module('zeppelinWebApp'));
var ParagraphCtrl;
var scope;
var websocketMsgSrvMock = {};
var paragraphMock = {
@ -22,7 +21,7 @@ describe('Controller: ParagraphCtrl', function() {
scope = $rootScope.$new();
$rootScope.notebookScope = $rootScope.$new(true, $rootScope);
ParagraphCtrl = $controller('ParagraphCtrl', {
$controller('ParagraphCtrl', {
$scope: scope,
websocketMsgSrv: websocketMsgSrvMock,
$element: {},