rodamora
1/6/2016 - 10:04 AM

Create an object Spy on angular2 testing

Create an object Spy on angular2 testing

class AppViewManagerSpy extends SpyObject {
  constructor() {
    super(AppViewManager);
  }
  noSuchMethod(m) {
    return super.noSuchMethod(m);
  }
}
Object.defineProperty(AppViewManagerSpy, "annotations", {get: function() {
    return [new proxy, new IMPLEMENTS(AppViewManager)];
  }});