| /** |
| ****************************************************************************** |
| * Copyright © 2017-2018 PTA GmbH. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| ****************************************************************************** |
| */ |
| |
| import { Component } from '@angular/core'; |
| |
| export function MockComponent(options: Component): Component { |
| const metadata: Component = { |
| selector: options.selector, |
| template: options.template || '', |
| inputs: options.inputs, |
| outputs: options.outputs, |
| }; |
| return Component(metadata)(<any>class _ {}); |
| } |