Skip to content

Commit 78d7141

Browse files
committed
test: drop comments and rename tests
Signed-off-by: Erick Wendel <erick.workspace@gmail.com>
1 parent f076bf2 commit 78d7141

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/test_runner/mock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class MockTracker {
133133
options = kEmptyObject,
134134
) {
135135
validateStringOrSymbol(methodName, 'methodName');
136-
// In case object is a static class
136+
137137
if (typeof object !== 'function') {
138138
validateObject(object, 'object');
139139
}

test/parallel/test-runner-mocking.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ test('spy functions can be bound', (t) => {
318318
assert.strictEqual(sum.mock.restore(), undefined);
319319
assert.strictEqual(sum.bind(0)(2, 11), 13);
320320
});
321-
test('spies on async class functions', async (t) => {
321+
test('mocks prototype methods on an instance', async (t) => {
322322
class Runner {
323323
async someTask(msg) {
324324
return Promise.resolve(msg);
@@ -350,7 +350,7 @@ test('spies on async class functions', async (t) => {
350350
assert.strictEqual(obj.someTask.mock, undefined);
351351
});
352352

353-
test('spies on async class static functions', async (t) => {
353+
test('spies on async static class methods', async (t) => {
354354
class Runner {
355355
static async someTask(msg) {
356356
return Promise.resolve(msg);

0 commit comments

Comments
 (0)