Last active
December 19, 2015 11:29
-
-
Save meritt/5947598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node test.js | |
Welcome to the world of beautiful web typography — only with Richtypo. | |
Beautiful <span class="amp">&</span> Awesome Web Typography with<span class="slaquo"> </span> <span class="hlaquo">“</span>Richtypo” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var richtypo = require('richtypo'); // 0.1.6 | |
var beautiful = richtypo.rich('Welcome to the world of beautiful web typography — only with Richtypo.'); | |
var awesome = richtypo.title('Beautiful & Awesome Web Typography with “Richtypo”'); | |
console.log(beautiful); | |
console.log(awesome); |
С node 0.10 как-то он совсем плохо работает. Тесты запускаться не хотят :(
> richtypo@0.1.6 test /Users/simonenko/Sites/Projects/richtypo.js
> jasmine-node test/ || true
/Users/simonenko/Sites/Projects/richtypo.js/node_modules/jasmine-node/lib/jasmine-node/index.js:24
var minorVersion = process.version.match(/\d\.(\d)\.\d/)[1];
^
TypeError: Cannot read property '1' of null
at Object.<anonymous> (/Users/simonenko/Sites/Projects/richtypo.js/node_modules/jasmine-node/lib/jasmine-node/index.js:24:57)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/simonenko/Sites/Projects/richtypo.js/node_modules/jasmine-node/lib/jasmine-node/cli.js:1:77)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
С jasmine-node@1.10.1
тесты начали запускаться. Странно, но тесты говорят, что всё ок.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
И кажется во втором примере
slaquo
иhlaquo
съехали.