Permalink
Browse files

Merge pull request #35 from fabdouglas/patch-6

Test for PR #31
2 parents 571ee93 + 269e8a9 commit 04c64ddd877f38ecb794596f46bd34ffea0f6978 @jaridmargolin jaridmargolin 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 04c64dd

Please sign in to comment.