This repository was archived by the owner on May 25, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11describe ( 'uiCodemirror' , function ( ) {
22 'use strict' ;
33
4+ var phantom = / P h a n t o m J S / . test ( navigator . userAgent ) ;
5+
46 // declare these up here to be global to all tests
57 var scope , $compile , $timeout , uiConfig ;
68
@@ -189,6 +191,7 @@ describe('uiCodemirror', function () {
189191
190192
191193 it ( 'when the IDE changes should update the model' , function ( ) {
194+ if ( phantom ) return ;
192195 var element = $compile ( '<div ui-codemirror ng-model="foo"></div>' ) ( scope ) ;
193196
194197 expect ( element ) . toBeDefined ( ) ;
@@ -203,6 +206,7 @@ describe('uiCodemirror', function () {
203206 } ) ;
204207
205208 it ( 'when the model changes should update the IDE' , function ( ) {
209+ if ( phantom ) return ;
206210 var element = $compile ( '<div ui-codemirror ng-model="foo"></div>' ) ( scope ) ;
207211
208212 expect ( element ) . toBeDefined ( ) ;
@@ -216,6 +220,7 @@ describe('uiCodemirror', function () {
216220
217221
218222 it ( 'when the IDE changes should use ngChange' , function ( ) {
223+ if ( phantom ) return ;
219224 scope . change = angular . noop ;
220225 spyOn ( scope , 'change' ) . andCallFake ( function ( ) { expect ( scope . foo ) . toBe ( 'baz' ) ; } ) ;
221226
You can’t perform that action at this time.
0 commit comments