Real unit test (isolation, no children render)
Calls:
- constructor
- render
| # ************************************************************ | |
| # Sequel Pro SQL dump | |
| # Version 4541 | |
| # | |
| # http://www.sequelpro.com/ | |
| # https://github.com/sequelpro/sequelpro | |
| # | |
| # Host: 127.0.0.1 (MySQL 5.7.16-0ubuntu0.16.04.1) | |
| # Generation Time: 2016-12-21 12:35:15 +0000 | |
| # ************************************************************ |
| String.prototype.getInitials = function(glue){ | |
| if (typeof glue == "undefined") { | |
| var glue = true; | |
| } | |
| var initials = this.replace(/[^a-zA-Z- ]/g, "").match(/\b\w/g); | |
| if (glue) { | |
| return initials.join(''); | |
| } |