Skip to content

Fix pretest task for require.js test fixture #1036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2016
Merged

Fix pretest task for require.js test fixture #1036

merged 1 commit into from
Oct 13, 2016

Conversation

etpinard
Copy link
Contributor

master is currently broken, but rest assured, there's nothing wrong with v1.18.0 itself (yet).

In brief,

The npm run pretest builds a fixture to test plotly.min.js in a Require.js environment in this suite.

To do so, in master, pretest.js uses a string replace to place the bundle code in a Require.js define statement. This string replace currently breaks the fixture and thus making the Require.js test fail.

In this PR, the Require.js test fixture is built using a more robust arrary join('').

@etpinard etpinard merged commit 0b68f58 into master Oct 13, 2016
@etpinard etpinard deleted the pretest-fix branch October 13, 2016 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant