Problems with
alexisinwork opened this issue · comments
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