Skip to content

Commit

Permalink
fixing a little bug...
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo García Sanz committed May 9, 2015
1 parent 6553005 commit 797d7cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var wrapScript = function (filename, data) {

var wrapSpan = function (filename, data) {

return wrapScript(filename, '<span class="icon icon-' + path.basename(filename, '.svg') + '">' + data + '</span>');
return wrapScript(filename, '<span className="icon icon-' + path.basename(filename, '.svg') + '">' + data + '</span>');
};

var wrap = wrapScript;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage" : "https://github.com/coma/svg-reactify",
"repository" : "https://github.com/coma/svg-reactify",
"main" : "./index.js",
"version" : "0.5.1",
"version" : "0.5.2",
"license" : "MIT",
"private" : false,
"authors" : [
Expand Down
2 changes: 1 addition & 1 deletion test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('when passing a string', function () {
return;
}

assert.strictEqual(output, 'var React = require("react");module.exports = React.createClass({displayName: "exports",render: function () { return (React.createElement("span", {class: "icon icon-foo"}, React.createElement("svg", {viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg"}, React.createElement("path", {d: "M0 0h100v100H0z"})))); }});');
assert.strictEqual(output, 'var React = require("react");module.exports = React.createClass({displayName: "exports",render: function () { return (React.createElement("span", {className: "icon icon-foo"}, React.createElement("svg", {viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg"}, React.createElement("path", {d: "M0 0h100v100H0z"})))); }});');
done();
}
};
Expand Down

0 comments on commit 797d7cb

Please sign in to comment.