Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more passing tests for class properties transform
  • Loading branch information
nfcampos authored and calesce committed Oct 1, 2016
1 parent 794c02b commit 4f34665
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/babel/fixtures/class-properties/not-a-function/.babelrc
@@ -0,0 +1,3 @@
{
"plugins": ["syntax-class-properties", "../../../../../src/babel"]
}
3 changes: 3 additions & 0 deletions test/babel/fixtures/class-properties/not-a-function/actual.js
@@ -0,0 +1,3 @@
class Foo {
bar = 2;
}
14 changes: 14 additions & 0 deletions test/babel/fixtures/class-properties/not-a-function/expected.js
@@ -0,0 +1,14 @@
class Foo {
bar = 2;
}
;

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

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

;
@@ -0,0 +1,3 @@
{
"plugins": ["syntax-class-properties", "../../../../../src/babel"]
}
@@ -0,0 +1,5 @@
class Foo {
bar = function (a, b) {
return a(b);
};
}
@@ -0,0 +1,16 @@
class Foo {
bar = function (a, b) {
return a(b);
};
}
;

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

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

;

0 comments on commit 4f34665

Please sign in to comment.