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
/** | |
* $ ember test --filter "text-2-html" | |
*/ | |
import { text2Html } from '../../../helpers/text-2-html'; | |
import { module, test } from 'qunit'; | |
module('Unit | Helper | text 2 html'); | |
const input = "Hey\nHow're ya doin'?\nSorry you can't get through.\nWhy don't you leave me your name, mine is @planetcrypton, and your number, mine is +4512345678, and I'll get back to you.\nDon't forget to visit http://www.wearedelasoul.com/\nMail me at plug2@reversed-yogurt.com #oldschool #plug1 #plug2 #plug3"; |
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
/** | |
* Really simple model-validation | |
* by extending a model with | |
* extra validation functionality | |
* | |
* Here's how it works | |
* /your-app/models/person.js: | |
* import DS from 'ember-data'; | |
* import Validation from 'your-app/models/validation'; | |
* |