Permalink
Browse files

Test for PR #31

Test for PR #31 as requested.
1 parent 470d7bb commit 269e8a93d744e50c53da09fd6452f165792a0363 @fabdouglas fabdouglas committed Feb 28, 2014
Showing with 9 additions and 1 deletion.
  1. +9 −1 test/formatter.js
View
@@ -293,6 +293,14 @@ describe('formatter.js', function () {
done();
});
});
+
+ it('Should update value when resetPattern method is called without changing pattern', function (done) {
+ user.keySeq('2456789013', function () {
+ formatted.resetPattern();
+ assert.equal(formatted.el.value, '(245) 678-9013');
+ done();
+ });
+ });
});
-});
+});

0 comments on commit 269e8a9

Please sign in to comment.