Readded wrongly removed spaces

This commit is contained in:
Vito Albano 2016-10-20 15:12:26 +01:00
parent 632009f468
commit c994adf22b

View File

@ -152,8 +152,8 @@ describe('TypeaheadWidget', () => {
it('should setup initial value', () => { it('should setup initial value', () => {
spyOn(formService, 'getRestFieldValues').and.returnValue(Observable.create(observer => { spyOn(formService, 'getRestFieldValues').and.returnValue(Observable.create(observer => {
observer.next([ observer.next([
{id: '1', name: 'One'}, { id: '1', name: 'One' },
{id: '2', name: 'Two'} { id: '2', name: 'Two' }
]); ]);
observer.complete(); observer.complete();
})); }));
@ -168,8 +168,8 @@ describe('TypeaheadWidget', () => {
it('should not setup initial value due to missing option', () => { it('should not setup initial value due to missing option', () => {
spyOn(formService, 'getRestFieldValues').and.returnValue(Observable.create(observer => { spyOn(formService, 'getRestFieldValues').and.returnValue(Observable.create(observer => {
observer.next([ observer.next([
{id: '1', name: 'One'}, { id: '1', name: 'One' },
{id: '2', name: 'Two'} { id: '2', name: 'Two' }
]); ]);
observer.complete(); observer.complete();
})); }));
@ -183,8 +183,8 @@ describe('TypeaheadWidget', () => {
it('should setup field options on load', () => { it('should setup field options on load', () => {
let options: FormFieldOption[] = [ let options: FormFieldOption[] = [
{id: '1', name: 'One'}, { id: '1', name: 'One' },
{id: '2', name: 'Two'} { id: '2', name: 'Two' }
]; ];
spyOn(formService, 'getRestFieldValues').and.returnValue(Observable.create(observer => { spyOn(formService, 'getRestFieldValues').and.returnValue(Observable.create(observer => {
@ -209,8 +209,8 @@ describe('TypeaheadWidget', () => {
it('should get filtered options', () => { it('should get filtered options', () => {
let options: FormFieldOption[] = [ let options: FormFieldOption[] = [
{id: '1', name: 'Item one'}, { id: '1', name: 'Item one' },
{id: '2', name: 'Item two'} { id: '2', name: 'Item two' }
]; ];
widget.field.options = options; widget.field.options = options;
widget.value = 'tw'; widget.value = 'tw';
@ -222,8 +222,8 @@ describe('TypeaheadWidget', () => {
it('should be case insensitive when filtering options', () => { it('should be case insensitive when filtering options', () => {
let options: FormFieldOption[] = [ let options: FormFieldOption[] = [
{id: '1', name: 'Item one'}, { id: '1', name: 'Item one' },
{id: '2', name: 'iTEM TWo'} { id: '2', name: 'iTEM TWo' }
]; ];
widget.field.options = options; widget.field.options = options;
widget.value = 'tW'; widget.value = 'tW';