Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Fix failing exportCsv test from promise rejection #117

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

bz2
Copy link

@bz2 bz2 commented Feb 14, 2022

In tested logic, createObjectURL() gets called but doesn't exist in JSDOM mocks. Stub it out for this test, also simplify the mock that feeds the value. Also make the downloadBlob which directly deals in values there more exact.

Having a shared or global createObjectURL() test mock might be neater, it's replaced in a few other places, and swapping out globals inside of a test can be a little suspect.

To get this to install/build with node 16 I also needed to replace node-sass but dependency updates are a bigger thing so leaving alone for now.

In tested logic, createObjectURL() gets called but doesn't exist in
JSDOM mocks. Stub it out for this test, also simplify the mock that
feeds the value. Also make the downloadBlob which directly deals in
values there more exact.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant