mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fix eslint for tests
This commit is contained in:
parent
7b1da053cc
commit
0364ad48d0
4 changed files with 8 additions and 6 deletions
|
|
@ -243,6 +243,11 @@ module.exports = function(grunt) {
|
|||
]
|
||||
},
|
||||
test: {
|
||||
options: {
|
||||
rules: {
|
||||
'no-undef': 0
|
||||
}
|
||||
},
|
||||
src: ['test/spec/{,*/}*.js']
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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: {},
|
||||
|
|
|
|||
Loading…
Reference in a new issue