Browse files

Format filter spec fixes

  • Loading branch information...
1 parent 9e721d2 commit cff71e091d5d49b68f7882fa8a47b27e0999c9e5 @pkozlowski-opensource pkozlowski-opensource committed Aug 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/filters/format/test/formatSpec.js
View
4 modules/filters/format/test/formatSpec.js
@@ -10,10 +10,10 @@ describe('format', function() {
expect(formatFilter('First $0, then $0, finally $0', 'bob')).toEqual('First bob, then bob, finally bob');
});
it('should replace all instances of $n based on order of token array', function() {
- expect(formatFilter('First $0, then $1, finally $2', ['bob','frank','dianne'])).toEqual('First is bob, then frank, finally dianne');
+ expect(formatFilter('First is $0, then $1, finally $2', ['bob','frank','dianne'])).toEqual('First is bob, then frank, finally dianne');
});
it('should replace all instances :tokens based on keys of token object', function() {
- expect(formatFilter('First is :first, next is :second, finally there is :third', {first:'bob',second:'frank',third:'dianne'})).toEqual('First is bob, then frank, finally dianne');
+ expect(formatFilter('First is :first, next is :second, finally there is :third', {first:'bob',second:'frank',third:'dianne'})).toEqual('First is bob, next is frank, finally there is dianne');
});
it('should do nothing if tokens are undefined', function() {
expect(formatFilter('Hello There')).toEqual('Hello There');

0 comments on commit cff71e0

Please sign in to comment.