fixed(spy): support SpyObject
in Typescript as well
- allow `@IMPLEMENTS` as a decorator - implement empty `noSuchMethod`
This commit is contained in:
@ -299,6 +299,9 @@ export class SpyObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Noop so that SpyObject has the smae interface as in Dart
|
||||
noSuchMethod(args) {}
|
||||
|
||||
spy(name) {
|
||||
if (!this[name]) {
|
||||
this[name] = this._createGuinnessCompatibleSpy(name);
|
||||
|
Reference in New Issue
Block a user