mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* breaking(partial-app): require version option * chore: update yarn.lock * test: add case for empty version * update artifacts
14 lines
263 B
JavaScript
14 lines
263 B
JavaScript
"use strict";
|
|
|
|
const num = [2,3];
|
|
|
|
function multiplyXYZ(x, y, z){
|
|
return x * y * z;
|
|
}
|
|
|
|
const multiplyBySix = multiplyXYZ(?, ...num);
|
|
|
|
expect(multiplyBySix(6)).toBe(36);
|
|
expect(multiplyBySix.length).toEqual(1);
|
|
expect(multiplyBySix.name).toEqual("multiplyXYZ");
|