diff --git a/assets/js/components/WakaTime.jsx b/assets/js/components/WakaTime.jsx index e773b96..6fbd742 100644 --- a/assets/js/components/WakaTime.jsx +++ b/assets/js/components/WakaTime.jsx @@ -15,7 +15,7 @@ var WakaTimeOriginal = require('../core/WakaTime'); // Helpers var changeExtensionState = require('../helpers/changeExtensionState'); -var WakaTime = React.createClass({ +var Wakatime = React.createClass({ getInitialState: function() { return { @@ -170,4 +170,4 @@ var WakaTime = React.createClass({ }); -module.exports = WakaTime; +module.exports = Wakatime; \ No newline at end of file diff --git a/package.json b/package.json index 36ace50..527ce5d 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "testFileExtensions": [ "jest.js" ], - "scriptPreprocessor": "/tests/preprocesser.js", + "scriptPreprocessor": "/node_modules/babel-jest", "testDirectoryName": "tests", "unmockedModulePathPatterns": [ "/node_modules/react" @@ -22,6 +22,7 @@ }, "private": true, "devDependencies": { + "babel-jest": "^5.3.0", "bower": "^1.4.1", "chai": "^3.0.0", "del": "^1.2.0", diff --git a/tests/preprocesser.js b/tests/preprocesser.js deleted file mode 100644 index 148ce3a..0000000 --- a/tests/preprocesser.js +++ /dev/null @@ -1,7 +0,0 @@ -// preprocessor.js -var ReactTools = require('react-tools'); -module.exports = { - process: function(src) { - return ReactTools.transform(src); - } -}; \ No newline at end of file