tibetan-date-calculator
Version:
A library to calculate tibetan calendar details. It is based on Svante Janson's paper www2.math.uu.se/~svante/papers/calendars/tibet.pdf
11 lines (8 loc) • 320 B
text/typescript
import getYearFromWestern from '../get-year-from-western';
import { yearMock } from '../../__mocks__';
describe('getYearFromWestern(wYear)', () => {
it('should retrun the correct year attributes', () => {
const year = getYearFromWestern(yearMock.westernYear);
expect(year).toMatchObject(yearMock);
});
});