Skip to content

Commit

Permalink
Revert "Removed hard coded styling. #33"
Browse files Browse the repository at this point in the history
  • Loading branch information
dasois committed Jul 24, 2014
1 parent 677346b commit 5a99841
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ angular.module('ngProgress.provider', ['ngProgress.directive'])
//Default values for provider
this.autoStyle = true;
this.count = 0;
this.height = '2px';
this.color = 'firebrick';

this.$get = ['$document',
'$window',
Expand Down
6 changes: 6 additions & 0 deletions tests/ngProgressProviderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@ describe('How the provider should work', function () {
this.progressbar.complete();
expect(this.progressbar.status()).toBe(100);
});
it('return current height when calling height() without parameters', function () {
expect(this.progressbar.height()).toBe('2px');
});
it('set the height when calling height() with parameter', function () {
this.progressbar.height('5px');
expect(this.progressbar.height()).toBe('5px');
});
it('return current color when calling color() without parameters', function () {
expect(this.progressbar.color()).toBe('firebrick');
});
it('set the color when calling color() with parameter', function () {
this.progressbar.color('green');
expect(this.progressbar.color()).toBe('green');
Expand Down

0 comments on commit 5a99841

Please sign in to comment.