Skip to content

Commit 008bade

Browse files
author
Philippe
authored
Fix tests and prepare 1.8.0 release (#132)
1 parent 1eff145 commit 008bade

File tree

7 files changed

+40
-9
lines changed

7 files changed

+40
-9
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ matrix:
1111

1212
install:
1313
- haxelib install munit
14-
- haxelib install hamcrest
1514
- haxelib install hxnodejs
1615
- haxelib install html-entities
1716

autocomplete.hxml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-lib munit
2+
-cp src/lib
3+
-cp test/src
4+
-js _
5+
react.React

changes.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
## Changes
22

3+
### 1.8.0
4+
5+
- Haxe 4.0.0 support
6+
7+
### 1.7.0
8+
9+
- Added new Context API extern
10+
11+
### 1.6.0
12+
13+
- Use `html-entities` library
14+
15+
### 1.5.0
16+
17+
- Haxe 4 preview support
18+
- Improved breakpoint on JSX
19+
- Added PureComponent extern
20+
- Added new Refs API extern
21+
- Improvement and documentation of `@:jsxStatic` functionality
22+
323
### 1.4.0
424

525
- Generate `displayName` for `@:jsxStatic` components #86

test/src/ReactMacroTest.hx

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,25 @@ import support.sub.CompModule;
88
import AssertTools.assertHasProps;
99

1010
class CompBasic extends ReactComponent {
11+
override function render() {
12+
return jsx('<div/>');
13+
}
1114
}
1215
class CompDefaults extends ReactComponent {
1316
static public var defaultProps = {
1417
defA:'A',
1518
defB:42
1619
}
20+
override function render() {
21+
return jsx('<div/>');
22+
}
1723
}
1824
extern class CompExtern extends ReactComponent {
1925
}
2026

2127

2228
class ReactMacroTest
2329
{
24-
2530
public function new() {}
2631

2732
@BeforeClass

test/src/TestSuite.hx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import massive.munit.TestSuite;
22

33
import JsxParserTest;
4-
import JsxSanitizeTest;
54
import ReactMacroTest;
5+
import JsxSanitizeTest;
66

77
/**
88
* Auto generated Test Suite for MassiveUnit.
@@ -15,7 +15,7 @@ class TestSuite extends massive.munit.TestSuite
1515
super();
1616

1717
add(JsxParserTest);
18-
add(JsxSanitizeTest);
1918
add(ReactMacroTest);
19+
add(JsxSanitizeTest);
2020
}
2121
}

test/src/support/sub/CompModule.hx

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package support.sub;
22

3+
import react.ReactMacro.jsx;
34
import react.ReactComponent;
45

56
class CompModule extends ReactComponent
@@ -9,9 +10,11 @@ class CompModule extends ReactComponent
910
defB:43
1011
}
1112

12-
public function new()
13-
{
13+
public function new() {
1414
super();
1515
}
16-
17-
}
16+
17+
override function render() {
18+
return jsx('<div/>');
19+
}
20+
}

test/test.hxml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
-main TestMain
22
-lib munit
3-
-lib hamcrest
43
-lib html-entities
54
-cp src/lib
65

0 commit comments

Comments
 (0)