Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@meritt
Last active December 19, 2015 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meritt/5947598 to your computer and use it in GitHub Desktop.
Save meritt/5947598 to your computer and use it in GitHub Desktop.
$ node test.js
Welcome to the world of beautiful web typography — only with Richtypo.
Beautiful <span class="amp">&amp;</span> Awesome Web Typography with<span class="slaquo"> </span> <span class="hlaquo">“</span>Richtypo”
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 &amp; Awesome Web Typography with “Richtypo”');
console.log(beautiful);
console.log(awesome);
@meritt
Copy link
Author

meritt commented Jul 8, 2013

И кажется во втором примере slaquo и hlaquo съехали.

@meritt
Copy link
Author

meritt commented Jul 8, 2013

С 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)

@meritt
Copy link
Author

meritt commented Jul 8, 2013

С jasmine-node@1.10.1 тесты начали запускаться. Странно, но тесты говорят, что всё ок.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment