Index: trunk/extensions/UploadWizard/test/jasmine/spec/mw.Uri.spec.js |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | expect( uri.host ).toEqual( 'www.sample.com' ); |
122 | 122 | expect( uri.port ).toEqual( '81' ); |
123 | 123 | expect( uri.path ).toEqual( '/dir/dir.2/index.htm' ); |
124 | | - expect( uri.query ).toEqual( { q1: '0', test1: '', test2: 'value (escaped)' } ); |
| 124 | + expect( uri.query ).toEqual( { q1: '0', test1: null, test2: 'value (escaped)' } ); |
125 | 125 | expect( uri.fragment ).toEqual( 'top' ); |
126 | 126 | } ); |
127 | 127 | |
— | — | @@ -140,7 +140,8 @@ |
141 | 141 | it( "should have query string which contains all components", function() { |
142 | 142 | var queryString = uri.getQueryString(); |
143 | 143 | expect( queryString ).toContain( 'q1=0' ); |
144 | | - expect( queryString ).toContain( 'test1=' ); |
| 144 | + expect( queryString ).toContain( 'test1' ); |
| 145 | + expect( queryString ).not.toContain( 'test1=' ); |
145 | 146 | expect( queryString ).toContain( 'test2=value+%28escaped%29' ); |
146 | 147 | } ); |
147 | 148 | |