Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit ddec284

Browse files
committed
Updated spec and test.conf
1 parent 42561bd commit ddec284

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/test.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ files = [
44
JASMINE_ADAPTER,
55
'components/angular/angular.js',
66
'components/angular-mocks/angular-mocks.js',
7-
'test/tiny_mce358.js',
7+
'test/lib/tinymce358.js',
88
'src/tinymce.js',
99
'test/*.spec.js'
1010
];

test/tinymce.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ describe('uiTinymce', function () {
2222
*/
2323
function compile() {
2424
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);
2626
});
2727
waits(1);
2828
}
2929

3030
describe('compiling this directive', function () {
3131

3232
it('should include the passed options', function () {
33-
spyOn($.fn, 'tinymce');
33+
spyOn(tinymce, 'init');
3434
compile();
3535
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');
3838
});
3939
});
4040

4141
it('should include the default options', function () {
42-
spyOn($.fn, 'tinymce');
42+
spyOn(tinymce, 'init');
4343
compile();
4444
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');
4747
});
4848
});
4949
});

0 commit comments

Comments
 (0)