This repository was archived by the owner on Sep 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ files = [
4
4
JASMINE_ADAPTER ,
5
5
'components/angular/angular.js' ,
6
6
'components/angular-mocks/angular-mocks.js' ,
7
- 'test/tiny_mce358 .js' ,
7
+ 'test/lib/tinymce358 .js' ,
8
8
'src/tinymce.js' ,
9
9
'test/*.spec.js'
10
10
] ;
Original file line number Diff line number Diff line change @@ -22,28 +22,28 @@ describe('uiTinymce', function () {
22
22
*/
23
23
function compile ( ) {
24
24
runs ( function ( ) {
25
- element = $compile ( '<form><textarea name ="foo" ui-tinymce="{foo: \'bar\'}" ng-model="foo"></textarea></form>' ) ( scope ) ;
25
+ element = $compile ( '<form><textarea id ="foo" ui-tinymce="{foo: \'bar\'}" ng-model="foo"></textarea></form>' ) ( scope ) ;
26
26
} ) ;
27
27
waits ( 1 ) ;
28
28
}
29
29
30
30
describe ( 'compiling this directive' , function ( ) {
31
31
32
32
it ( 'should include the passed options' , function ( ) {
33
- spyOn ( $ . fn , 'tinymce ' ) ;
33
+ spyOn ( tinymce , 'init ' ) ;
34
34
compile ( ) ;
35
35
runs ( function ( ) {
36
- expect ( $ . fn . tinymce ) . toHaveBeenCalled ( ) ;
37
- expect ( $ . fn . tinymce . mostRecentCall . args [ 0 ] . foo ) . toEqual ( 'bar' ) ;
36
+ expect ( tinymce . init ) . toHaveBeenCalled ( ) ;
37
+ expect ( tinymce . init . mostRecentCall . args [ 0 ] . foo ) . toEqual ( 'bar' ) ;
38
38
} ) ;
39
39
} ) ;
40
40
41
41
it ( 'should include the default options' , function ( ) {
42
- spyOn ( $ . fn , 'tinymce ' ) ;
42
+ spyOn ( tinymce , 'init ' ) ;
43
43
compile ( ) ;
44
44
runs ( function ( ) {
45
- expect ( $ . fn . tinymce ) . toHaveBeenCalled ( ) ;
46
- expect ( $ . fn . tinymce . mostRecentCall . args [ 0 ] . bar ) . toEqual ( 'baz' ) ;
45
+ expect ( tinymce . init ) . toHaveBeenCalled ( ) ;
46
+ expect ( tinymce . init . mostRecentCall . args [ 0 ] . bar ) . toEqual ( 'baz' ) ;
47
47
} ) ;
48
48
} ) ;
49
49
} ) ;
You can’t perform that action at this time.
0 commit comments