Skip to content

Commit

Permalink
fix(rounding): add rounding to top level export to make it available
Browse files Browse the repository at this point in the history
fixes #68
  • Loading branch information
z3bi committed Jun 18, 2021
1 parent d4d5b1b commit 1663b47
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Adhan.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Adhan.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/Adhan.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import CalculationParameters from './CalculationParameters';
import Qibla from './Qibla';
import SunnahTimes from './SunnahTimes';
import { PolarCircleResolution } from './PolarCircleResolution';
import { Rounding } from './Rounding';

const adhan = {
Prayer,
Expand All @@ -20,6 +21,7 @@ const adhan = {
SunnahTimes,
Qibla,
PolarCircleResolution,
Rounding,
};

export default adhan;
6 changes: 6 additions & 0 deletions test/adhan.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ test("Verifying the angles defined by the calculation method", () => {
expect(p13.ishaAngle).toBe(17);
expect(p13.ishaInterval).toBe(0);
expect(p13.method).toBe("Turkey");

const p14 = new adhan.CalculationParameters(null, 18, 17);
expect(p14.fajrAngle).toBe(18);
expect(p14.ishaAngle).toBe(17);
expect(p14.ishaInterval).toBe(0);
expect(p14.method).toBe("Other");
});

test("calculating prayer times", () => {
Expand Down

0 comments on commit 1663b47

Please sign in to comment.