issues
search
yabwe
/
words
A humble yet ambitious attempt to build a WYSIWYG editor, backed by JSON, without relying on document.execCommand
Other
19
stars
4
forks
source link
Unit test coverage for char.js, word.js, and util.js
#6
Closed
nmielnik
closed
8 years ago
nmielnik
commented
8 years ago
Add sinon & sinon-chai dev dependencies for testing
Unit tests which cover 100% of
char.js
and
word.js
Unit tests which cover all methods of Util which don't require some browser functionality (ie document, window, etc.)
Fix a tricky bug in
word.split()
(uncovered by unit tests, yay!)
Move some logic around splitting words between word & block
Get rid of
Util.on
helper
A few other minor tweaks/fixes to code
char.js
andword.js
word.split()
(uncovered by unit tests, yay!)Util.on
helper