Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2k
Add doubleclick events#255
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
bd6995e10cded28b6783fe8ef663d46ae2602eca97782f6925b1e895c41a7569c19406e7e0889848f4a54c5103fd517c4f90edb18File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,27 @@ | ||
| var Plotly = require('@lib/index'); | ||
| describe('the register function', function() { | ||
| 'use strict'; | ||
| var Plots = Plotly.Plots; | ||
| beforeEach(function() { | ||
| this.modulesKeys = Object.keys(Plots.modules); | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we avoid using ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure. You're not a fan of the jasmine Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually on second look, I'm ok with that. Didn't know that it was jasmine convention and that the | ||
| this.allTypesKeys = Object.keys(Plots.allTypes); | ||
| this.allCategoriesKeys = Object.keys(Plots.allCategories); | ||
| }); | ||
| afterEach(function() { | ||
| function revertObj(obj, initialKeys) { | ||
| Object.keys(obj).forEach(function(k) { | ||
| if(initialKeys.indexOf(k) === -1) delete obj[k]; | ||
| }); | ||
| } | ||
| revertObj(Plots.modules, this.modulesKeys); | ||
| revertObj(Plots.allTypes, this.allTypesKeys); | ||
| revertObj(Plots.allCategories, this.allCategoriesKeys); | ||
| }); | ||
| it('should throw an error when no argument is given', function() { | ||
| expect(function() { | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi @cpsievert