@@ -769,45 +769,45 @@ describe('cms.base.js', function() {
769
769
var url ;
770
770
771
771
url = CMS . API . Helpers . makeURL ( 'test' , [ [ 'param' , '1' ] , [ 'another' , '2' ] ] ) ;
772
- expect ( url ) . toEqual ( 'test?param=1& another=2' ) ;
772
+ expect ( url ) . toEqual ( 'test?param=1&another=2' ) ;
773
773
774
774
url = CMS . API . Helpers . makeURL ( 'test?param=1' , [ [ 'another' , '2' ] ] ) ;
775
- expect ( url ) . toEqual ( 'test?param=1& another=2' ) ;
775
+ expect ( url ) . toEqual ( 'test?param=1&another=2' ) ;
776
776
777
777
url = CMS . API . Helpers . makeURL ( 'test?param=1&another=2' , [ [ 'different' , '3' ] ] ) ;
778
- expect ( url ) . toEqual ( 'test?param=1& another=2& different=3' ) ;
778
+ expect ( url ) . toEqual ( 'test?param=1&another=2&different=3' ) ;
779
779
780
780
url = CMS . API . Helpers . makeURL ( 'test?param=1&another=2' , [ [ 'different' , '3' ] ] ) ;
781
- expect ( url ) . toEqual ( 'test?param=1& another=2& different=3' ) ;
781
+ expect ( url ) . toEqual ( 'test?param=1&another=2&different=3' ) ;
782
782
783
783
url = CMS . API . Helpers . makeURL ( 'test?param=1&another=2&again=3' , [ [ 'different' , '3' ] ] ) ;
784
- expect ( url ) . toEqual ( 'test?param=1& another=2& again=3& different=3' ) ;
784
+ expect ( url ) . toEqual ( 'test?param=1&another=2&again=3&different=3' ) ;
785
785
} ) ;
786
786
787
787
it ( 'replaces param values with new ones if they match' , function ( ) {
788
788
var url ;
789
789
790
790
url = CMS . API . Helpers . makeURL ( 'test?param=1&another=2' , [ [ 'another' , '3' ] ] ) ;
791
- expect ( url ) . toEqual ( 'test?param=1& another=3' ) ;
791
+ expect ( url ) . toEqual ( 'test?param=1&another=3' ) ;
792
792
793
793
url = CMS . API . Helpers . makeURL ( 'test?param=1&another=2' , [ [ 'another' , '3' ] , [ 'param' , '4' ] ] ) ;
794
- expect ( url ) . toEqual ( 'test?another=3& param=4' ) ;
794
+ expect ( url ) . toEqual ( 'test?another=3¶m=4' ) ;
795
795
} ) ;
796
796
797
797
it ( 'understands hashes in the url' , function ( ) {
798
798
var url ;
799
799
800
800
url = CMS . API . Helpers . makeURL ( 'test#hash' , [ [ 'param' , '1' ] , [ 'another' , '2' ] ] ) ;
801
- expect ( url ) . toEqual ( 'test?param=1& another=2#hash' ) ;
801
+ expect ( url ) . toEqual ( 'test?param=1&another=2#hash' ) ;
802
802
803
803
url = CMS . API . Helpers . makeURL ( 'test#hash#with#hash' , [ [ 'param' , '1' ] , [ 'another' , '2' ] ] ) ;
804
- expect ( url ) . toEqual ( 'test?param=1& another=2#hash#with#hash' ) ;
804
+ expect ( url ) . toEqual ( 'test?param=1&another=2#hash#with#hash' ) ;
805
805
806
806
url = CMS . API . Helpers . makeURL ( 'test#' , [ [ 'param' , '1' ] , [ 'another' , '2' ] ] ) ;
807
- expect ( url ) . toEqual ( 'test?param=1& another=2' ) ;
807
+ expect ( url ) . toEqual ( 'test?param=1&another=2' ) ;
808
808
809
809
url = CMS . API . Helpers . makeURL ( 'test#hash&stuff' , [ [ 'param' , '1' ] , [ 'another' , '2' ] ] ) ;
810
- expect ( url ) . toEqual ( 'test?param=1& another=2#hash&stuff' ) ;
810
+ expect ( url ) . toEqual ( 'test?param=1&another=2#hash&stuff' ) ;
811
811
812
812
url = CMS . API . Helpers . makeURL ( 'test#hash&stuff' , [ ] ) ;
813
813
expect ( url ) . toEqual ( 'test#hash&stuff' ) ;
0 commit comments