Real unit test (isolation, no children render)
Calls:
- constructor
- render
import { Injectable } from '@angular/core'; | |
import { | |
Http, | |
ConnectionBackend, | |
RequestOptions, | |
RequestOptionsArgs, | |
Response, | |
Headers | |
} from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; |
// === Arrays | |
var [a, b] = [1, 2]; | |
console.log(a, b); | |
//=> 1 2 | |
// Use from functions, only select from pattern | |
var foo = () => { | |
return [1, 2, 3]; |