Skip to content

Commit 03abe0a

Browse files
committed
Fix imports
1 parent bd520ef commit 03abe0a

File tree

7 files changed

+7
-14
lines changed

7 files changed

+7
-14
lines changed

features/step_definitions/distance_matrix.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
import util from 'util';
33

44
import flatbuffers from 'flatbuffers';
5-
import * as osrm from '../support/osrm/engine/api/fbresult.js';
6-
const FBResult = osrm.engine.api.fbresult.FBResult;
5+
import { FBResult } from '../support/osrm/engine/api/fbresult/fbresult.js';
76
import { When } from '@cucumber/cucumber';
87

98
// Regular expressions for matching different matrix API test scenarios

features/step_definitions/nearest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
import util from 'util';
33

44
import flatbuffers from 'flatbuffers';
5-
import * as osrm from '../support/osrm/engine/api/fbresult.js';
6-
const FBResult = osrm.engine.api.fbresult.FBResult;
5+
import { FBResult } from '../support/osrm/engine/api/fbresult/fbresult.js';
76
import { When } from '@cucumber/cucumber';
87

98
When(/^I request nearest I should get$/, function (table, callback) {

test/nodejs/match.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import OSRM from '../../lib/index.js';
33
import test from 'tape';
44
import { data_path, mld_data_path, three_test_coordinates, two_test_coordinates } from './constants.js';
55
import flatbuffers from 'flatbuffers';
6-
import { osrm } from '../../features/support/fbresult_generated.js';
6+
import { FBResult } from '../../features/support/osrm/engine/api/fbresult/fbresult.js';
77

8-
const FBResult = osrm.engine.api.fbresult.FBResult;
98

109

1110
test('match: match in Monaco with flatbuffers format', function(assert) {

test/nodejs/nearest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import OSRM from '../../lib/index.js';
33
import test from 'tape';
44
import { data_path, mld_data_path, three_test_coordinates, two_test_coordinates } from './constants.js';
55
import flatbuffers from 'flatbuffers';
6-
import { osrm } from '../../features/support/fbresult_generated.js';
6+
import { FBResult } from '../../features/support/osrm/engine/api/fbresult/fbresult.js';
77

8-
const FBResult = osrm.engine.api.fbresult.FBResult;
98

109

1110
test('nearest with flatbuffers format', function(assert) {

test/nodejs/route.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import OSRM from '../../lib/index.js';
33
import test from 'tape';
44
import { data_path as monaco_path, mld_data_path as monaco_mld_path, three_test_coordinates, two_test_coordinates } from './constants.js';
55
import flatbuffers from 'flatbuffers';
6-
import { osrm } from '../../features/support/fbresult_generated.js';
6+
import { FBResult } from '../../features/support/osrm/engine/api/fbresult/fbresult.js';
77

8-
const FBResult = osrm.engine.api.fbresult.FBResult;
98

109
test('route: routes Monaco and can return result in flatbuffers', function(assert) {
1110
assert.plan(5);

test/nodejs/table.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import OSRM from '../../lib/index.js';
33
import test from 'tape';
44
import { data_path, mld_data_path, three_test_coordinates, two_test_coordinates } from './constants.js';
55
import flatbuffers from 'flatbuffers';
6-
import { osrm } from '../../features/support/fbresult_generated.js';
6+
import { FBResult } from '../../features/support/osrm/engine/api/fbresult/fbresult.js';
77

8-
const FBResult = osrm.engine.api.fbresult.FBResult;
98

109
test('table: flatbuffer format', function(assert) {
1110
assert.plan(3);

test/nodejs/trip.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import OSRM from '../../lib/index.js';
33
import test from 'tape';
44
import { data_path, mld_data_path, three_test_coordinates, two_test_coordinates } from './constants.js';
55
import flatbuffers from 'flatbuffers';
6-
import { osrm } from '../../features/support/fbresult_generated.js';
6+
import { FBResult } from '../../features/support/osrm/engine/api/fbresult/fbresult.js';
77

8-
const FBResult = osrm.engine.api.fbresult.FBResult;
98

109
test('trip: trip in Monaco with flatbuffers format', function(assert) {
1110
assert.plan(2);

0 commit comments

Comments
 (0)