Skip to content

Commit e45e595

Browse files
committed
Uncomment 3 spec
1 parent 613ae99 commit e45e595

File tree

1 file changed

+30
-21
lines changed

1 file changed

+30
-21
lines changed

test/tinymce.spec.js

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -71,44 +71,53 @@ describe('uiTinymce', function () {
7171
done();
7272
});
7373
});
74-
/*
74+
7575
describe('setting a value to the model', function () {
76-
it('should update the editor', function() {
76+
it('should update the editor', function(done) {
7777
compile();
78-
runs(function () {
79-
scope.$apply(function() {
80-
scope.foo = text;
81-
});
78+
setTimeout(function () {
79+
scope.foo = text;
80+
scope.$apply();
81+
8282
expect(tinymce.get('foo').getContent()).toEqual(text);
83+
84+
done();
8385
});
8486
});
85-
it('should handle undefined gracefully', function() {
87+
it('should handle undefined gracefully', function (done) {
8688
compile();
87-
runs(function () {
88-
scope.$apply(function() {
89-
scope.foo = undefined;
90-
});
89+
setTimeout(function () {
90+
scope.foo = undefined;
91+
scope.$apply();
92+
9193
expect(tinymce.get('foo').getContent()).toEqual('');
94+
95+
done();
9296
});
9397
});
94-
it('should handle null gracefully', function() {
98+
it('should handle null gracefully', function (done) {
9599
compile();
96-
runs(function () {
97-
scope.$apply(function() {
98-
scope.foo = null;
99-
});
100+
setTimeout(function () {
101+
scope.foo = null;
102+
scope.$apply();
103+
100104
expect(tinymce.get('foo').getContent()).toEqual('');
105+
106+
done();
101107
});
102108
});
103109
});
104-
describe('using the editor', function () {
105-
it('should update the model', function() {
110+
/*describe('using the editor', function () {
111+
it('should update the model', function (done) {
106112
compile();
107-
runs(function () {
113+
setTimeout(function () {
108114
tinymce.get('foo').setContent(text);
115+
109116
expect(scope.foo).toEqual(text);
117+
118+
done();
110119
});
111120
});
112-
});
113-
*/
121+
});*/
122+
114123
});

0 commit comments

Comments
 (0)