Skip to content

Commit

Permalink
fix test for adx (local moment 1st value issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Yurov committed May 1, 2023
1 parent eff7147 commit 4343fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/adx/adx.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('ADX', () => {
// @ts-ignore typing error?
const cross = adx2.nextValue({ high: tick.h, low: tick.l, close: tick.c });

if (local && cross && localMoment) {
if (local && cross && localMoment?.adx) {
expect(local.adx).toEqual(cross.adx);
expect(local.mdi).toEqual(cross.mdi);
expect(local.pdi).toEqual(cross.pdi);
Expand Down

0 comments on commit 4343fdb

Please sign in to comment.