forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spinner): Allow ionSpinner default to be set by ionicConfigProvi…
…der Closes ionic-team#3877
- Loading branch information
1 parent
42ed212
commit cf338cf
Showing
4 changed files
with
57 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
describe('Ionic Spinner', function() { | ||
var el, scope, compile; | ||
|
||
beforeEach(module('ionic')); | ||
|
||
beforeEach(inject(function($compile, $rootScope) { | ||
compile = $compile; | ||
scope = $rootScope; | ||
})); | ||
|
||
it('should compile and output an svg', function() { | ||
el = compile('<ion-spinner>')(scope); | ||
var spinner = el.find('svg'); | ||
expect(spinner.length).toEqual(1); | ||
}); | ||
|
||
it('should add config setting class', inject(function($ionicConfig){ | ||
$ionicConfig.spinner.icon('android'); | ||
el = compile('<ion-spinner>')(scope); | ||
expect(el.is('.spinner-android')).toEqual(true); | ||
})); | ||
|
||
}); |