projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump to version 2 🎉
[dygraphs.git]
/
auto_tests
/
tests
/
dygraph-options-tests.js
diff --git
a/auto_tests/tests/dygraph-options-tests.js
b/auto_tests/tests/dygraph-options-tests.js
index
aa9db33
..
ded9ee3
100644
(file)
--- a/
auto_tests/tests/dygraph-options-tests.js
+++ b/
auto_tests/tests/dygraph-options-tests.js
@@
-4,6
+4,7
@@
import Dygraph from '../../src/dygraph';
import DygraphOptions from '../../src/dygraph-options';
import Dygraph from '../../src/dygraph';
import DygraphOptions from '../../src/dygraph-options';
+import OPTIONS_REFERENCE from '../../src/dygraph-options-reference';
describe("dygraph-options-tests", function() {
describe("dygraph-options-tests", function() {
@@
-76,7
+77,7
@@
var getWarnings = function(div, data, opts) {
};
it('testLogWarningForNonexistentOption', function() {
};
it('testLogWarningForNonexistentOption', function() {
- if (
typeof(Dygraph.OPTIONS_REFERENCE) === 'undefined'
) {
+ if (
!OPTIONS_REFERENCE
) {
return; // this test won't pass in non-debug mode.
}
return; // this test won't pass in non-debug mode.
}
@@
-105,7
+106,7
@@
it('testLogWarningForNonexistentOption', function() {
});
it('testOnlyLogsEachWarningOnce', function() {
});
it('testOnlyLogsEachWarningOnce', function() {
- if (
typeof(Dygraph.OPTIONS_REFERENCE) === 'undefined'
) {
+ if (
!OPTIONS_REFERENCE
) {
return; // this test won't pass in non-debug mode.
}
return; // this test won't pass in non-debug mode.
}