react-native-ethiopian-calendar
Version:
A react native calendar component which is mainly intended for applications which require Ethiopian calendar.
17 lines (14 loc) • 460 B
text/typescript
import { toGregorian, toEthiopic } from '.';
import { BasicDate } from '../Core';
describe('ethiopicCalendar', () => {
test('should convert ethiopic date to gregorian date', () => {
expect(toGregorian(2013, 5, 10)).toEqual(
new BasicDate(2021, 1, 18, 2459232.5)
);
});
test('should convert gregorian date to ethiopic date', () => {
expect(toEthiopic(2021, 1, 18)).toEqual(
new BasicDate(2013, 5, 10, 2459232.5)
);
});
});