buildDocs/curryRightAll.spec.js
import * as tslib_1 from "tslib";
import { expect } from 'chai';
import { CurryRightAll } from './curryRightAll';
describe('curryRightAll', () => {
it('should curry the method with default arity', () => {
class MyClass {
add(a, b) {
return [a, b];
}
}
tslib_1.__decorate([
CurryRightAll()
], MyClass.prototype, "add", null);
const myClass = new MyClass();
const set5 = myClass.add(5);
expect(set5(10)).to.eql([10, 5]);
});
});