Update to React 0.12.2

This commit is contained in:
andrewliebchen
2015-01-06 21:43:19 -08:00
parent a8a6f6b462
commit 83454b5886
11 changed files with 26 additions and 42 deletions
+3 -3
View File
@@ -72,8 +72,8 @@ describe('react-webpack generator', function() {
react.run({}, function() {
setTimeout(function() {
helpers.assertFile([].concat(expected, [
'src/scripts/components/TempTestApp.jsx',
'src/scripts/components/main.jsx'
'src/scripts/components/TempTestApp.js',
'src/scripts/components/main.js'
]));
done();
});
@@ -164,7 +164,7 @@ describe('react-webpack generator', function() {
reactGenerator.run([], function() {
helpers.assertFileContent([
[path.join('src/scripts', targetDirectory, name + '.jsx'), new RegExp('var ' + scriptNameFn(name) + suffix, 'g')],
[path.join('src/scripts', targetDirectory, name + '.js'), new RegExp('var ' + scriptNameFn(name) + suffix, 'g')],
[path.join('test/spec', targetDirectory, name + '.js'), new RegExp('describe\\(\'' + specNameFn(name) + suffix + '\'', 'g')]
]);