X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Ftwo_digit_years.js;h=76241f8778fab1927b8806d2df2c8cd95939a0f0;hb=HEAD;hp=9e2d490e7da05e9d546a67ef8ed5b49b9389cb70;hpb=89fdcedbda6906d90e15d84285c4f6c0b8d96d28;p=dygraphs.git diff --git a/auto_tests/tests/two_digit_years.js b/auto_tests/tests/two_digit_years.js index 9e2d490..76241f8 100644 --- a/auto_tests/tests/two_digit_years.js +++ b/auto_tests/tests/two_digit_years.js @@ -3,6 +3,12 @@ * * @author gmadrid@gmail.com (George Madrid) */ + +import Dygraph from '../../src/dygraph'; +import {Granularity, getDateAxis} from '../../src/dygraph-tickers'; +import * as utils from '../../src/dygraph-utils'; +import DEFAULT_ATTRS from '../../src/dygraph-default-attrs'; + describe("two-digit-years", function() { it('testTwoDigitYears', function() { @@ -16,8 +22,8 @@ it('testTwoDigitYears', function() { start.setFullYear(9); end.setFullYear(11); - var ticks = Dygraph.getDateAxis(start, end, Dygraph.QUARTERLY, function(x) { - return Dygraph.DEFAULT_ATTRS.axes['x'][x]; + var ticks = getDateAxis(start, end, Granularity.QUARTERLY, function(x) { + return DEFAULT_ATTRS.axes['x'][x]; }); // This breaks in Firefox & Safari: