Skip to content

Commit ef343ea

Browse files
committed
Add relevant reference test for LocalDate
1 parent 7bcffc5 commit ef343ea

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

test/reference/LocalDateTest.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
3+
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4+
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
5+
*/
6+
7+
import {
8+
LocalDate, LocalDateTime, ZonedDateTime,
9+
ZoneId,
10+
} from 'js-joda';
11+
12+
import { assertEquals } from '../testUtils';
13+
import '../useMomentZoneRules';
14+
15+
describe('org.threeten.bp.TestLocalDate', () => {
16+
const ZONE_GAZA = ZoneId.of('Asia/Gaza');
17+
18+
describe('atStartOfDay()', () => {
19+
20+
// TODO fixme
21+
it.skip('test_atStartOfDay_dstGap', () => {
22+
const t = LocalDate.of(2007, 4, 1);
23+
assertEquals(t.atStartOfDay(ZONE_GAZA),
24+
ZonedDateTime.of(LocalDateTime.of(2007, 4, 1, 1, 0), ZONE_GAZA));
25+
});
26+
27+
});
28+
29+
});
30+

0 commit comments

Comments
 (0)