/** * This file is part of Measurement Toolkit * * (c) Bas Peeters * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import {IUnit} from "../../src/Units/IUnit"; import {Unit} from "../../src/Units/Unit"; export class UnitStub extends Unit { protected converters: {[key: string]: () => IUnit} = { OtherStub: () => new UnitStub(), }; public add(unit: IUnit): this { return this; } public divideBy(unit: IUnit): this { return this; } public multiply(unit: IUnit): this { return this; } public percentageOf(unit: IUnit): this { return this; } public subtract(unit: IUnit): this { return this; } }