aurelia / testing

Simplifies the testing of UI components by providing an elegant, fluent interface for arranging test setups along with a number of runtime debug/test helpers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with

alexisinwork opened this issue · comments

commented

You have error in documentation about aurelia-testing
URL: http://aurelia.io/hub.html#/doc/article/aurelia/testing/latest/testing-components/3

View:

<template>
  <div class="firstName">${firstName}</div>
</template>

ViewModel:

import {bindable} from 'aurelia-framework';

export class MyComponent {
  @bindable firstName;
}

But in test suit used name not firstName:

beforeEach(() => {
    component = StageComponent
      .withResources('src/my-component')
      .inView('<my-component name.bind="name"></my-component>')
      .boundTo({ firstName: 'Bob' });
  });

Please, fix this error.

P.S. If I write not in the correct place, please write where I should write