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

Commit

Permalink
fix(tests): usage of undefined variables
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisirhc committed Oct 20, 2014
1 parent 42011f0 commit 34273ff
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/datepicker/test/datepicker.spec.js
Expand Up @@ -1602,7 +1602,7 @@ describe('datepicker directive', function () {
beforeEach(inject(function() {
$rootScope.date = new Date('August 11, 2013');
$rootScope.mode = 'month';
wrapElement = $compile('<div><input ng-model="date" datepicker-popup datepicker-mode="mode"></div>')($rootScope);
var wrapElement = $compile('<div><input ng-model="date" datepicker-popup datepicker-mode="mode"></div>')($rootScope);
$rootScope.$digest();
assignElements(wrapElement);
}));
Expand Down
2 changes: 1 addition & 1 deletion src/progressbar/test/progressbar.spec.js
@@ -1,5 +1,5 @@
describe('progressbar directive', function () {
var $rootScope, element;
var $rootScope, $compile, element;
beforeEach(module('ui.bootstrap.progressbar'));
beforeEach(module('template/progressbar/progressbar.html', 'template/progressbar/progress.html', 'template/progressbar/bar.html'));
beforeEach(inject(function(_$compile_, _$rootScope_) {
Expand Down
2 changes: 1 addition & 1 deletion src/rating/test/rating.spec.js
@@ -1,5 +1,5 @@
describe('rating directive', function () {
var $rootScope, element;
var $rootScope, $compile, element;
beforeEach(module('ui.bootstrap.rating'));
beforeEach(module('template/rating/rating.html'));
beforeEach(inject(function(_$compile_, _$rootScope_) {
Expand Down
4 changes: 2 additions & 2 deletions src/timepicker/test/timepicker.spec.js
@@ -1,5 +1,5 @@
describe('timepicker directive', function () {
var $rootScope, element;
var $rootScope, $compile, element;

beforeEach(module('ui.bootstrap.timepicker'));
beforeEach(module('template/timepicker/timepicker.html'));
Expand Down Expand Up @@ -792,7 +792,7 @@ describe('timepicker directive', function () {

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

it('should not be invalid when the model is null', function() {
Expand Down
4 changes: 2 additions & 2 deletions src/tooltip/test/tooltip.spec.js
Expand Up @@ -386,7 +386,7 @@ describe('tooltipWithDifferentSymbols', function() {
);
$compile(elmBody)($rootScope);
$rootScope.$apply();
elmInput = elmBody.find('input');
var elmInput = elmBody.find('input');
elmInput.trigger('focus');

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

describe( 'tooltipHtmlUnsafe', function() {
var elm, elmBody, scope;
var elm, elmBody, elmScope, scope;

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

0 comments on commit 34273ff

Please sign in to comment.