Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added tests for class props with same name as class method
  • Loading branch information
nfcampos authored and calesce committed Oct 1, 2016
1 parent 4f34665 commit 46b0d31
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
@@ -0,0 +1,3 @@
{
"plugins": ["syntax-class-properties", "../../../../../src/babel"]
}
@@ -0,0 +1,9 @@
class Foo {
bar = (a, b) => {
return a(b);
};

bar() {
return 2
}
}
@@ -0,0 +1,24 @@
var _this = this;

class Foo {
bar = (...params) => _this.__bar__REACT_HOT_LOADER__(...params);

__bar__REACT_HOT_LOADER__(a, b) {
return a(b);
}

bar() {
return 2;
}
}
;

var _temp = function () {
if (typeof __REACT_HOT_LOADER__ === 'undefined') {
return;
}

__REACT_HOT_LOADER__.register(Foo, "Foo", __FILENAME__);
}();

;

0 comments on commit 46b0d31

Please sign in to comment.