@@ -26,17 +26,17 @@ describe('MimeType tests', function() {
2626 beforeEach ( function ( ) {
2727 _files = OC . MimeTypeList . files ;
2828 _aliases = OC . MimeTypeList . aliases ;
29- _theme = OC . MimeTypeList . themes [ ' abc' ] ;
29+ _theme = OC . MimeTypeList . themes . abc ;
3030
3131 OC . MimeTypeList . files = [ 'folder' , 'folder-shared' , 'folder-external' , 'foo-bar' , 'foo' , 'file' ] ;
3232 OC . MimeTypeList . aliases = { 'app/foobar' : 'foo/bar' } ;
33- OC . MimeTypeList . themes [ ' abc' ] = [ 'folder' ] ;
33+ OC . MimeTypeList . themes . abc = [ 'folder' ] ;
3434 } ) ;
3535
3636 afterEach ( function ( ) {
3737 OC . MimeTypeList . files = _files ;
3838 OC . MimeTypeList . aliases = _aliases ;
39- OC . MimeTypeList . themes [ ' abc' ] = _theme ;
39+ OC . MimeTypeList . themes . abc = _theme ;
4040 } ) ;
4141
4242 describe ( '_getFile' , function ( ) {
@@ -109,9 +109,9 @@ describe('MimeType tests', function() {
109109
110110 var res = OC . MimeType . getIconUrl ( 'dir' ) ;
111111 expect ( Object . keys ( OC . MimeType . _mimeTypeIcons ) . length ) . toEqual ( 1 ) ;
112- expect ( OC . MimeType . _mimeTypeIcons [ ' dir' ] ) . toEqual ( res ) ;
112+ expect ( OC . MimeType . _mimeTypeIcons . dir ) . toEqual ( res ) ;
113113
114- var res = OC . MimeType . getIconUrl ( 'dir-shared' ) ;
114+ res = OC . MimeType . getIconUrl ( 'dir-shared' ) ;
115115 expect ( Object . keys ( OC . MimeType . _mimeTypeIcons ) . length ) . toEqual ( 2 ) ;
116116 expect ( OC . MimeType . _mimeTypeIcons [ 'dir-shared' ] ) . toEqual ( res ) ;
117117 } ) ;
0 commit comments