Skip to content

Commit d55769e

Browse files
committed
Add tests for #115
But it isn't really testing the problem, since it depends on the browser. See #115 (comment)
1 parent 540a0a5 commit d55769e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/issues_spec.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
describe('issues', function() {
2-
it('see #112', function() {
2+
it('fixes #115', function() {
3+
expect($.format.date('Wed Jul 31 2019 15:12:13 GMT+0200 (heure d’été d’Europe centrale)', 'HH:mm:ss a ddd MMMM d yyyy')).toEqual('15:12:13 PM Wednesday July 31 2019');
4+
expect($.format.date('Wed Jul 31 2019 15:11:29 GMT+0200 (GMT+02:00)', 'HH:mm:ss a ddd MMMM d yyyy')).toEqual('15:11:29 PM Wednesday July 31 2019');
5+
expect($.format.date('Sun Jan 13 2019 23:38:49 GMT-1200 (GMT-12:00)', 'HH:mm:ss')).toEqual('23:38:49');
6+
});
7+
8+
it('fixes #112', function() {
39
// https://github.com/phstc/jquery-dateFormat/issues/112
410
var testDate = new Date('Jul 9, 2018 12:28:00');
511

0 commit comments

Comments
 (0)