Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

beep.js 834B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. var test = require('tape');
  2. var archy = require('../');
  3. test('beep', function (t) {
  4. var s = archy({
  5. label : 'beep',
  6. nodes : [
  7. 'ity',
  8. {
  9. label : 'boop',
  10. nodes : [
  11. {
  12. label : 'o_O',
  13. nodes : [
  14. {
  15. label : 'oh',
  16. nodes : [ 'hello', 'puny' ]
  17. },
  18. 'human'
  19. ]
  20. },
  21. 'party!'
  22. ]
  23. }
  24. ]
  25. });
  26. t.equal(s, [
  27. 'beep',
  28. '├── ity',
  29. '└─┬ boop',
  30. ' ├─┬ o_O',
  31. ' │ ├─┬ oh',
  32. ' │ │ ├── hello',
  33. ' │ │ └── puny',
  34. ' │ └── human',
  35. ' └── party!',
  36. ''
  37. ].join('\n'));
  38. t.end();
  39. });