O'Reilly logo

NativeScript for Angular Mobile Development by Nathanael J. Anderson, Nathan Walker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a test

Let's start our journey and create a new test file: list.test.js. This file will test our mix-list screen. The screen's HTML (/app/modules/mixer/components/mix-list.component.html) looks like this:

<ActionBar title="Compositions" class="action-bar">   <ActionItem (tap)="add()" ios.position="right">     <Button [text]="'fa-plus' | fonticon" class="fa action-item"></Button>   </ActionItem></ActionBar><ListView [items]="(mixer$ | async)?.compositions | orderBy: 'order'" class="list-group"> <ng-template let-composition="item">   <GridLayout rows="auto" columns="100,*,auto" class="list-group-item">     <Button [text]="'fa-pencil' | fonticon" (tap)="edit(composition)" row="0" col="0" class="fa"></Button> <Label [text]="composition.name" (tap)="select(composition)" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required