File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1681,8 +1681,9 @@ describe('parser', function() {
16811681
16821682 beforeEach ( module ( function ( $provide ) {
16831683 $provide . decorator ( '$sniffer' , function ( $delegate ) {
1684- $delegate . csp = cspEnabled ;
1685- return $delegate ;
1684+ expect ( $delegate . csp . noUnsafeEval === true ||
1685+ $delegate . csp . noUnsafeEval === false ) . toEqual ( true ) ;
1686+ $delegate . csp . noUnsafeEval = cspEnabled ;
16861687 } ) ;
16871688 } , provideLog ) ) ;
16881689
@@ -2120,9 +2121,8 @@ describe('parser', function() {
21202121
21212122 expect ( scope . $eval ( 'items[1] = "abc"' ) ) . toEqual ( "abc" ) ;
21222123 expect ( scope . $eval ( 'items[1]' ) ) . toEqual ( "abc" ) ;
2123- // Dont know how to make this work....
2124- // expect(scope.$eval('books[1] = "moby"')).toEqual("moby");
2125- // expect(scope.$eval('books[1]')).toEqual("moby");
2124+ expect ( scope . $eval ( 'books[1] = "moby"' ) ) . toEqual ( "moby" ) ;
2125+ expect ( scope . $eval ( 'books[1]' ) ) . toEqual ( "moby" ) ;
21262126 } ) ;
21272127
21282128 it ( 'should evaluate grouped filters' , function ( ) {
You can’t perform that action at this time.
0 commit comments