Skip to content

Commit cb91a2a

Browse files
committed
Address comments
1 parent 04c1557 commit cb91a2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rcl_timer_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Napi::Value CallTimerWithInfo(const Napi::CallbackInfo& info) {
206206
rcl_get_error_string().str);
207207

208208
Napi::Object timer_info = Napi::Object::New(env);
209-
timer_info.Set("expectetCallTime",
209+
timer_info.Set("expectedCallTime",
210210
Napi::BigInt::New(env, call_info.expected_call_time));
211211
timer_info.Set("actualCallTime",
212212
Napi::BigInt::New(env, call_info.actual_call_time));

test/test-timer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ describe('rclnodejs Timer class testing', function () {
156156
it('timer.callTimerWithInfo', function (done) {
157157
const timer = node.createTimer(BigInt('100000000'), () => {});
158158
const info = timer.callTimerWithInfo();
159-
assert.deepStrictEqual(typeof info.expectetCallTime, 'bigint');
159+
assert.deepStrictEqual(typeof info.expectedCallTime, 'bigint');
160160
assert.deepStrictEqual(typeof info.actualCallTime, 'bigint');
161161
timer.cancel();
162162
done();

0 commit comments

Comments
 (0)