diff options
Diffstat (limited to 'test/ParserSpec.js')
| -rw-r--r-- | test/ParserSpec.js | 19 | 
1 files changed, 0 insertions, 19 deletions
| diff --git a/test/ParserSpec.js b/test/ParserSpec.js index a5e1901c..980a673c 100644 --- a/test/ParserSpec.js +++ b/test/ParserSpec.js @@ -415,24 +415,6 @@ describe('parser', function() {      expect(scope.$eval('true || run()')).toBe(true);    }); -  describe('formatter', function() { -    it('should return no argument function', function() { -      var noop = parser('noop').formatter()(); -      expect(noop.format(null, 'abc')).toEqual('abc'); -      expect(noop.parse(null, '123')).toEqual('123'); -    }); - -    it('should delegate arguments', function() { -      angularFormatter.myArgs = { -        parse: function(a, b){ return [a, b]; }, -        format: function(a, b){ return [a, b]; } -      }; -      var myArgs = parser('myArgs:objs').formatter()(); -      expect(myArgs.format({objs:'B'}, 'A')).toEqual(['A', 'B']); -      expect(myArgs.parse({objs:'D'}, 'C')).toEqual(['C', 'D']); -      delete angularFormatter.myArgs; -    }); -  });    describe('assignable', function(){      it('should expose assignment function', function(){ @@ -443,5 +425,4 @@ describe('parser', function() {        expect(scope).toEqual({a:123});      });    }); -  }); | 
