test(aio): add mock services

This commit is contained in:
Peter Bacon Darwin
2017-03-06 14:08:38 +00:00
committed by Igor Minar
parent b7e76cc2e1
commit b44bc9c022
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,23 @@
import { Injectable } from '@angular/core';
@Injectable()
export class MockLogger {
output = {
log: [],
error: [],
warn: []
};
log(value: any, ...rest) {
this.output.log.push([value, ...rest]);
}
error(value: any, ...rest) {
this.output.error.push([value, ...rest]);
}
warn(value: any, ...rest) {
this.output.warn.push([value, ...rest]);
}
}