22
33const chai = require ( 'chai' ) ;
44const expect = chai . expect ;
5- const rosjs = require ( '../index.js' ) ;
5+ const rosnodejs = require ( '../index.js' ) ;
66const xmlrpc = require ( 'xmlrpc' ) ;
77const netUtils = require ( '../utils/network_utils.js' ) ;
88
99describe ( 'XmlrpcTests' , ( ) => {
1010 // NOTE: make sure a roscore is not running (or something else at this address)
11- rosjs . require ( 'std_msgs' ) ;
12- rosjs . require ( 'std_srvs' ) ;
11+ rosnodejs . require ( 'std_msgs' ) ;
12+ rosnodejs . require ( 'std_srvs' ) ;
1313 let masterStub = xmlrpc . createServer ( { host : 'localhost' , port : 11311 } ) ;
1414 const nodeName = '/testNode' ;
1515
@@ -19,7 +19,7 @@ describe('XmlrpcTests', () => {
1919 callback ( null , resp ) ;
2020 } ) ;
2121
22- return rosjs . initNode ( nodeName ) ;
22+ return rosnodejs . initNode ( nodeName ) ;
2323 } ) ;
2424
2525 it ( 'registerSubscriber' , ( done ) => {
@@ -41,7 +41,7 @@ describe('XmlrpcTests', () => {
4141 done ( ) ;
4242 } ) ;
4343
44- const nh = rosjs . nh ;
44+ const nh = rosnodejs . nh ;
4545 const sub = nh . subscribe ( {
4646 topic : topic ,
4747 type : msgType ,
@@ -72,7 +72,7 @@ describe('XmlrpcTests', () => {
7272 done ( ) ;
7373 } ) ;
7474
75- const nh = rosjs . nh ;
75+ const nh = rosnodejs . nh ;
7676 const sub = nh . subscribe ( {
7777 topic : topic ,
7878 type : msgType ,
@@ -105,7 +105,7 @@ describe('XmlrpcTests', () => {
105105 done ( ) ;
106106 } ) ;
107107
108- const nh = rosjs . getNodeHandle ( ) ;
108+ const nh = rosnodejs . getNodeHandle ( ) ;
109109 const sub = nh . advertise ( {
110110 topic : topic ,
111111 type : msgType ,
@@ -136,7 +136,7 @@ describe('XmlrpcTests', () => {
136136 done ( ) ;
137137 } ) ;
138138
139- const nh = rosjs . nh ;
139+ const nh = rosnodejs . nh ;
140140 const pub = nh . advertise ( {
141141 topic : topic ,
142142 type : msgType ,
@@ -176,7 +176,7 @@ describe('XmlrpcTests', () => {
176176 done ( ) ;
177177 } ) ;
178178
179- const nh = rosjs . nh ;
179+ const nh = rosnodejs . nh ;
180180 const serv = nh . advertiseService ( {
181181 service : service ,
182182 type : srvType
@@ -203,7 +203,7 @@ describe('XmlrpcTests', () => {
203203 done ( ) ;
204204 } ) ;
205205
206- const nh = rosjs . nh ;
206+ const nh = rosnodejs . nh ;
207207 const serv = nh . advertiseService ( {
208208 service : service ,
209209 type : srvType
@@ -215,7 +215,7 @@ describe('XmlrpcTests', () => {
215215 } ) ;
216216
217217 afterEach ( ( ) => {
218- const nh = rosjs . nh ;
218+ const nh = rosnodejs . nh ;
219219
220220 // clear out any service, subs, pubs
221221 nh . _node . _services = { } ;
0 commit comments