-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add doubleclick events #255
Changes from all commits
bd6995e
10cded2
8b6783f
e8ef663
d46ae26
02eca97
782f692
5b1e895
c41a756
9c19406
e7e0889
848f4a5
4c5103f
d517c4f
90edb18
File filter
Filter by extension
Conversations
Jump to
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); | ||
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 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 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() { | ||
|
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