mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* breaking(partial-app): require version option * chore: update yarn.lock * test: add case for empty version * update artifacts
8 lines
183 B
JavaScript
8 lines
183 B
JavaScript
"use strict";
|
|
const obj = { add: (x, y) => x + y };
|
|
const addOne = obj.add(1, ?);
|
|
|
|
expect(addOne(5)).toEqual(6);
|
|
expect(addOne.length).toEqual(1);
|
|
expect(addOne.name).toEqual("add");
|