Skip to content

Commit 3349e7b

Browse files
committed
fix paths in jamsine tests
1 parent 4f57bff commit 3349e7b

File tree

3 files changed

+41
-43
lines changed

3 files changed

+41
-43
lines changed

test/jasmine/tests/events_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77

8-
var Events = require('@src/events');
8+
var Events = require('@src/lib/events');
99

1010
describe('Events', function () {
1111
'use strict';

test/jasmine/tests/geoaxes_test.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
var Plotly = require('@src/plotly'),
2-
params = require('@src/geo/lib/params');
1+
var params = require('@src/constants/geo_constants');
2+
var supplyLayoutDefaults = require('@src/plots/geo/layout/axis_defaults');
33

44
describe('Test geoaxes', function () {
55
'use strict';
66

7-
var GeoAxes = Plotly.GeoAxes;
8-
97
describe('supplyLayoutDefaults', function() {
108
var geoLayoutIn,
119
geoLayoutOut;
@@ -31,7 +29,7 @@ describe('Test geoaxes', function () {
3129
geoLayoutIn = {};
3230
geoLayoutOut = {scope: scope};
3331

34-
GeoAxes.supplyLayoutDefaults(geoLayoutIn, geoLayoutOut);
32+
supplyLayoutDefaults(geoLayoutIn, geoLayoutOut);
3533
expect(geoLayoutOut.lonaxis.range).toEqual(dfltLonaxisRange);
3634
expect(geoLayoutOut.lataxis.range).toEqual(dfltLataxisRange);
3735
expect(geoLayoutOut.lonaxis.tick0).toEqual(dfltLonaxisRange[0]);
@@ -43,7 +41,7 @@ describe('Test geoaxes', function () {
4341
};
4442
geoLayoutOut = {scope: scope};
4543

46-
GeoAxes.supplyLayoutDefaults(geoLayoutIn, geoLayoutOut);
44+
supplyLayoutDefaults(geoLayoutIn, geoLayoutOut);
4745
expect(geoLayoutOut.lonaxis.range).toEqual(customLonaxisRange);
4846
expect(geoLayoutOut.lataxis.range).toEqual(customLataxisRange);
4947
expect(geoLayoutOut.lonaxis.tick0).toEqual(customLonaxisRange[0]);
@@ -55,7 +53,7 @@ describe('Test geoaxes', function () {
5553
var expectedLonaxisRange, expectedLataxisRange;
5654

5755
function testOne() {
58-
GeoAxes.supplyLayoutDefaults(geoLayoutIn, geoLayoutOut);
56+
supplyLayoutDefaults(geoLayoutIn, geoLayoutOut);
5957
expect(geoLayoutOut.lonaxis.range).toEqual(expectedLonaxisRange);
6058
expect(geoLayoutOut.lataxis.range).toEqual(expectedLataxisRange);
6159
}

test/jasmine/tests/gl3daxes_test.js

+35-35
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
var Plotly = require('@src/plotly');
1+
var supplyLayoutDefaults = require('@src/plots/gl3d/layout/axis_defaults');
2+
23

34
describe('Test Gl3dAxes', function () {
45
'use strict';
@@ -7,7 +8,6 @@ describe('Test Gl3dAxes', function () {
78
var layoutIn,
89
layoutOut;
910

10-
var supplyLayoutDefaults = Plotly.Gl3dAxes.supplyLayoutDefaults;
1111
var options = {
1212
font: 'Open Sans',
1313
scene: {id: 'scene'},
@@ -22,41 +22,41 @@ describe('Test Gl3dAxes', function () {
2222
layoutIn = {};
2323

2424
var expected = {
25-
"xaxis": {
26-
"showline": false,
27-
"showgrid": true,
28-
"gridcolor": "rgb(204, 204, 204)",
29-
"gridwidth": 1,
30-
"showspikes": true,
31-
"spikesides": true,
32-
"spikethickness": 2,
33-
"spikecolor": "rgb(0,0,0)",
34-
"showbackground": false,
35-
"showaxeslabels": true
25+
'xaxis': {
26+
'showline': false,
27+
'showgrid': true,
28+
'gridcolor': 'rgb(204, 204, 204)',
29+
'gridwidth': 1,
30+
'showspikes': true,
31+
'spikesides': true,
32+
'spikethickness': 2,
33+
'spikecolor': 'rgb(0,0,0)',
34+
'showbackground': false,
35+
'showaxeslabels': true
3636
},
37-
"yaxis": {
38-
"showline": false,
39-
"showgrid": true,
40-
"gridcolor": "rgb(204, 204, 204)",
41-
"gridwidth": 1,
42-
"showspikes": true,
43-
"spikesides": true,
44-
"spikethickness": 2,
45-
"spikecolor": "rgb(0,0,0)",
46-
"showbackground": false,
47-
"showaxeslabels": true
37+
'yaxis': {
38+
'showline': false,
39+
'showgrid': true,
40+
'gridcolor': 'rgb(204, 204, 204)',
41+
'gridwidth': 1,
42+
'showspikes': true,
43+
'spikesides': true,
44+
'spikethickness': 2,
45+
'spikecolor': 'rgb(0,0,0)',
46+
'showbackground': false,
47+
'showaxeslabels': true
4848
},
49-
"zaxis": {
50-
"showline": false,
51-
"showgrid": true,
52-
"gridcolor": "rgb(204, 204, 204)",
53-
"gridwidth": 1,
54-
"showspikes": true,
55-
"spikesides": true,
56-
"spikethickness": 2,
57-
"spikecolor": "rgb(0,0,0)",
58-
"showbackground": false,
59-
"showaxeslabels": true
49+
'zaxis': {
50+
'showline': false,
51+
'showgrid': true,
52+
'gridcolor': 'rgb(204, 204, 204)',
53+
'gridwidth': 1,
54+
'showspikes': true,
55+
'spikesides': true,
56+
'spikethickness': 2,
57+
'spikecolor': 'rgb(0,0,0)',
58+
'showbackground': false,
59+
'showaxeslabels': true
6060
}
6161
};
6262

0 commit comments

Comments
 (0)