* test case for insertBefore for jsx * fix unshiftContainer and insertBefore * use path.scope.push * add test making sure computedKeys var declaration at the right block * add comment * nit [skip ci]
5 lines
148 B
JavaScript
5 lines
148 B
JavaScript
const createClass = (k) => class { [k()] = 2 };
|
|
|
|
const clazz = createClass(() => 'foo');
|
|
const instance = new clazz();
|
|
expect(instance.foo).toBe(2); |