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
10 lines
207 B
JavaScript
10 lines
207 B
JavaScript
"use strict";
|
|
|
|
const obj = {a : {b : {c : {add: (x, y) => x + y}}}};
|
|
|
|
const addOne = obj.a.b.c.add(1, ?);
|
|
|
|
expect(addOne(4)).toEqual(5);
|
|
expect(addOne.length).toEqual(1);
|
|
expect(addOne.name).toEqual("add");
|