This repository was archived by the owner on May 25, 2019. It is now read-only.
File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed 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
@@ -189,6 +191,7 @@ describe('uiCodemirror', function () {
189
191
190
192
191
193
it ( 'when the IDE changes should update the model' , function ( ) {
194
+ if ( phantom ) return ;
192
195
var element = $compile ( '<div ui-codemirror ng-model="foo"></div>' ) ( scope ) ;
193
196
194
197
expect ( element ) . toBeDefined ( ) ;
@@ -203,6 +206,7 @@ describe('uiCodemirror', function () {
203
206
} ) ;
204
207
205
208
it ( 'when the model changes should update the IDE' , function ( ) {
209
+ if ( phantom ) return ;
206
210
var element = $compile ( '<div ui-codemirror ng-model="foo"></div>' ) ( scope ) ;
207
211
208
212
expect ( element ) . toBeDefined ( ) ;
@@ -216,6 +220,7 @@ describe('uiCodemirror', function () {
216
220
217
221
218
222
it ( 'when the IDE changes should use ngChange' , function ( ) {
223
+ if ( phantom ) return ;
219
224
scope . change = angular . noop ;
220
225
spyOn ( scope , 'change' ) . andCallFake ( function ( ) { expect ( scope . foo ) . toBe ( 'baz' ) ; } ) ;
221
226
You can’t perform that action at this time.
0 commit comments