buildDocs/ary.spec.js
import * as tslib_1 from "tslib";
import { expect } from 'chai';
import { Ary } from './ary';
describe('ary', () => {
it('should invoke the method with specified arguments', () => {
class MyClass {
fn(...args) {
expect(args.length).to.equal(2);
}
}
tslib_1.__decorate([
Ary(2)
], MyClass.prototype, "fn", null);
const myClass = new MyClass();
myClass.fn(1, 2, 3, 4, 5);
});
});