Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49087

SearchBar: karma test is failed

$
0
0

@TamilvananDroid wrote:

when i am using [(ngModel)] inside searchbar like

<ion-searchbar [(ngModel)]="searchQuery" (ionInput)="getFilteredLabs($event)"></ion-searchbar>

functionally its working fine...but while unit testing it is showing error

LabsPage
× initialises
PhantomJS 2.1.1 (Windows 8 0.0.0)
Failed: EXCEPTION: Error in build/pages/labs/labs.html:10:17
ORIGINAL EXCEPTION: No value accessor for ''
ERROR CONTEXT:
[object Object]

× should get a list of labs

I added Searchbar directive from ionic-angular after getting reference from

but its is showing error

  × should get a list of labs
      PhantomJS 2.1.1 (Windows 8 0.0.0)
    Failed: EXCEPTION: Error in ./Searchbar class Searchbar - inline template:0:736
    ORIGINAL EXCEPTION: TypeError: undefined is not a constructor (evaluating 'this._config.getBoolean('spellcheck', false)')
    ORIGINAL STACKTRACE:`

How to solve this issue?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49087

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>