Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 34273ff

Browse files
committed
fix(tests): usage of undefined variables
1 parent 42011f0 commit 34273ff

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/datepicker/test/datepicker.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ describe('datepicker directive', function () {
16021602
beforeEach(inject(function() {
16031603
$rootScope.date = new Date('August 11, 2013');
16041604
$rootScope.mode = 'month';
1605-
wrapElement = $compile('<div><input ng-model="date" datepicker-popup datepicker-mode="mode"></div>')($rootScope);
1605+
var wrapElement = $compile('<div><input ng-model="date" datepicker-popup datepicker-mode="mode"></div>')($rootScope);
16061606
$rootScope.$digest();
16071607
assignElements(wrapElement);
16081608
}));

src/progressbar/test/progressbar.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
describe('progressbar directive', function () {
2-
var $rootScope, element;
2+
var $rootScope, $compile, element;
33
beforeEach(module('ui.bootstrap.progressbar'));
44
beforeEach(module('template/progressbar/progressbar.html', 'template/progressbar/progress.html', 'template/progressbar/bar.html'));
55
beforeEach(inject(function(_$compile_, _$rootScope_) {

src/rating/test/rating.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
describe('rating directive', function () {
2-
var $rootScope, element;
2+
var $rootScope, $compile, element;
33
beforeEach(module('ui.bootstrap.rating'));
44
beforeEach(module('template/rating/rating.html'));
55
beforeEach(inject(function(_$compile_, _$rootScope_) {

src/timepicker/test/timepicker.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
describe('timepicker directive', function () {
2-
var $rootScope, element;
2+
var $rootScope, $compile, element;
33

44
beforeEach(module('ui.bootstrap.timepicker'));
55
beforeEach(module('template/timepicker/timepicker.html'));
@@ -792,7 +792,7 @@ describe('timepicker directive', function () {
792792

793793
describe('when model is not a Date', function() {
794794
beforeEach(inject(function() {
795-
eelement = $compile('<timepicker ng-model="time"></timepicker>')($rootScope);
795+
element = $compile('<timepicker ng-model="time"></timepicker>')($rootScope);
796796
}));
797797

798798
it('should not be invalid when the model is null', function() {

src/tooltip/test/tooltip.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ describe('tooltipWithDifferentSymbols', function() {
386386
);
387387
$compile(elmBody)($rootScope);
388388
$rootScope.$apply();
389-
elmInput = elmBody.find('input');
389+
var elmInput = elmBody.find('input');
390390
elmInput.trigger('focus');
391391

392392
expect( elmInput.next().find('div').next().html() ).toBe('My tooltip');
@@ -396,7 +396,7 @@ describe('tooltipWithDifferentSymbols', function() {
396396
});
397397

398398
describe( 'tooltipHtmlUnsafe', function() {
399-
var elm, elmBody, scope;
399+
var elm, elmBody, elmScope, scope;
400400

401401
// load the tooltip code
402402
beforeEach(module('ui.bootstrap.tooltip', function ( $tooltipProvider ) {

0 commit comments

Comments
 (0)