buildDocs/tap.spec.js
import * as tslib_1 from "tslib";
import { expect } from 'chai';
import { Tap } from './tap';
describe('tap', () => {
it('should return the first argument', () => {
class MyClass {
fn(n) {
return 10;
}
}
tslib_1.__decorate([
Tap()
], MyClass.prototype, "fn", null);
const myClass = new MyClass();
expect(myClass.fn(50)).to.equal(50);
});
});