box / box-content-preview

JavaScript library for rendering files stored on Box
https://developer.box.com/docs/box-content-preview
Other
106 stars 113 forks source link

document how to include under Karma #576

Open keturn opened 6 years ago

keturn commented 6 years ago

Due to #521, we can't use our regular build chain with this, so we're having trouble with integrating code that uses this into our test suite.

Can you suggest a way for us to set up our karma.conf so that Box.Preview is available at test time?

Preferably without having to re-fetch preview.js from the network with every test run.

Or is there a mock implementation of Box.Preview we should load instead?

digismack commented 5 years ago

@keturn I see this was posted some time ago and never received a response. Did you ever figure out a solution?

keturn commented 5 years ago

Couldn't say; I'm no longer working with that project.