From ff38a472cf10ba7b9fbe950ca0555c811778ce8c Mon Sep 17 00:00:00 2001 From: Jesse Wardle Date: Thu, 26 Jun 2014 19:30:35 -0600 Subject: [PATCH] Removed hard coded styling. #33 --- src/provider.js | 2 -- tests/ngProgressProviderSpec.js | 6 ------ 2 files changed, 8 deletions(-) diff --git a/src/provider.js b/src/provider.js index 1054260..0659c74 100644 --- a/src/provider.js +++ b/src/provider.js @@ -5,8 +5,6 @@ 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', diff --git a/tests/ngProgressProviderSpec.js b/tests/ngProgressProviderSpec.js index b9edd76..d66e1e9 100644 --- a/tests/ngProgressProviderSpec.js +++ b/tests/ngProgressProviderSpec.js @@ -64,16 +64,10 @@ 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');