From 32e30e723aa588a3596d279707d3e6542f864463 Mon Sep 17 00:00:00 2001 From: jelhan Date: Mon, 15 Aug 2016 16:51:15 +0200 Subject: [PATCH] Fixes broken test introduced by #61 --- tests/unit/components/bootstrap-datepicker-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/components/bootstrap-datepicker-test.js b/tests/unit/components/bootstrap-datepicker-test.js index 8c27b3f..50ac533 100644 --- a/tests/unit/components/bootstrap-datepicker-test.js +++ b/tests/unit/components/bootstrap-datepicker-test.js @@ -50,7 +50,7 @@ test('resets date when input is cleared', function(assert) { assert.ok(this.$().datepicker('getDate'), 'initial value is set'); this.$().val(''); - this.$().trigger('input'); + this.$().datepicker('update'); assert.equal(this.$().datepicker('getDate'), null, 'value is reset when input is cleared'); });