aboutsummaryrefslogtreecommitdiffstats
path: root/test/FiltersSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/FiltersSpec.js')
-rw-r--r--test/FiltersSpec.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/FiltersSpec.js b/test/FiltersSpec.js
index 83d8aac0..672540c5 100644
--- a/test/FiltersSpec.js
+++ b/test/FiltersSpec.js
@@ -96,6 +96,7 @@ describe('filter', function() {
dealoc(context);
});
+
it('should do basic currency filtering', function() {
expect(currency(0)).toEqual('$0.00');
expect(html.hasClass('ng-format-negative')).toBeFalsy();
@@ -105,6 +106,7 @@ describe('filter', function() {
expect(html.hasClass('ng-format-negative')).toBeFalsy();
});
+
it('should return empty string for non-numbers', function() {
expect(currency()).toBe('');
expect(html.hasClass('ng-format-negative')).toBeFalsy();
@@ -113,6 +115,7 @@ describe('filter', function() {
});
});
+
describe('number', function() {
var context, number;