This repository was archived by the owner on May 25, 2019. It is now read-only.
File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 22
22
},
23
23
"dependencies" : {
24
24
"angular" : " ^1" ,
25
- "codemirror" : " ^3 "
25
+ "codemirror" : " 3 || 4 "
26
26
},
27
27
"devDependencies" : {
28
28
"angular-mocks" : " ^1"
Original file line number Diff line number Diff line change 1
1
describe ( 'uiCodemirror' , function ( ) {
2
2
'use strict' ;
3
3
4
+ var phantom = / P h a n t o m J S / . test ( navigator . userAgent ) ;
5
+
4
6
// declare these up here to be global to all tests
5
7
var scope , $compile , $timeout , uiConfig ;
6
8
@@ -231,6 +233,7 @@ describe('uiCodemirror', function () {
231
233
232
234
233
235
it ( 'when the IDE changes should update the model' , function ( ) {
236
+ if ( phantom ) return ;
234
237
var element = $compile ( '<div ui-codemirror ng-model="foo"></div>' ) ( scope ) ;
235
238
236
239
expect ( element ) . toBeDefined ( ) ;
@@ -245,6 +248,7 @@ describe('uiCodemirror', function () {
245
248
} ) ;
246
249
247
250
it ( 'when the model changes should update the IDE' , function ( ) {
251
+ if ( phantom ) return ;
248
252
var element = $compile ( '<div ui-codemirror ng-model="foo"></div>' ) ( scope ) ;
249
253
250
254
expect ( element ) . toBeDefined ( ) ;
@@ -258,6 +262,7 @@ describe('uiCodemirror', function () {
258
262
259
263
260
264
it ( 'when the IDE changes should use ngChange' , function ( ) {
265
+ if ( phantom ) return ;
261
266
scope . change = angular . noop ;
262
267
spyOn ( scope , 'change' ) . andCallFake ( function ( ) { expect ( scope . foo ) . toBe ( 'baz' ) ; } ) ;
263
268
You can’t perform that action at this time.
0 commit comments