buildDocs/unary.spec.js
import * as tslib_1 from "tslib";
import { expect } from 'chai';
import { Unary } from './unary';
describe('unary', () => {
it('should only invoke with one argument', () => {
class MyClass {
fn(...args) {
expect(args.length).to.equal(1);
}
}
tslib_1.__decorate([
Unary()
], MyClass.prototype, "fn", null);
const myClass = new MyClass();
myClass.fn(1, 2, 3, 4);
});
});