Skip to content

Commit 361eb77

Browse files
committed
Add tests for single quotes.
1 parent 3a8190c commit 361eb77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/jquery-ui-timepicker-addon_spec.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,10 @@ describe('datetimepicker', function() {
590590
});
591591

592592
describe('other', function() {
593-
// TODO: Finish
593+
expect($.datepicker.formatTime('')).toBe('');
594+
expect($.datepicker.formatTime("'abc'")).toBe('abc');
595+
expect($.datepicker.formatTime('"abc"')).toBe('"abc"');
596+
expect($.datepicker.formatTime("'")).toBe("'"); // TODO: Why???
594597
});
595598
});
596599
});

0 commit comments

Comments
 (0)