RemoteMetering / geteventstore-promise

An EventStore http+tcp wrapper package
MIT License
31 stars 17 forks source link

[Fix] Fixed expectedVersion=0 wrongly defaulting to -2 and a promise … #64

Closed amaghfur closed 5 years ago

amaghfur commented 5 years ago

…reject test giving false positives

mmuller99 commented 5 years ago

Hi @amaghfur, thanks for the contribution. Please note that isNaN(null) evaluates to false, could you please add a test for it?

amaghfur commented 5 years ago

@mmuller99, good catch! I've added the tests in and the fix.

amaghfur commented 5 years ago

@mmuller99 All done!