Skip to content

Commit 21d052a

Browse files
iwulizRafaelGSS
authored andcommitted
test: rename to getCallSites
PR-URL: #57948 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1436758 commit 21d052a

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/fixtures/typescript/ts/test-get-callsite-explicit.ts renamed to test/fixtures/typescript/ts/test-get-callsites-explicit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ interface CallSite {
77

88
constcallSite=getCallSites({sourceMap: false})[0];
99

10-
console.log('mapCallSite: ',callSite);
10+
console.log('mapCallSites: ',callSite);

test/fixtures/typescript/ts/test-get-callsite.ts renamed to test/fixtures/typescript/ts/test-get-callsites.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ interface CallSite {
77

88
constcallSite=getCallSites()[0];
99

10-
console.log('getCallSite: ',callSite);
10+
console.log('getCallSites: ',callSite);

‎test/parallel/test-util-getcallsites.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ const assert = require('node:assert');
131131
const{ status, stderr, stdout }=spawnSync(process.execPath,[
132132
'--no-warnings',
133133
'--experimental-transform-types',
134-
fixtures.path('typescript/ts/test-get-callsite.ts'),
134+
fixtures.path('typescript/ts/test-get-callsites.ts'),
135135
]);
136136

137137
constoutput=stdout.toString();
138138
assert.strictEqual(stderr.toString(),'');
139139
assert.match(output,/lineNumber:8/);
140140
assert.match(output,/column:18/);
141141
assert.match(output,/columnNumber:18/);
142-
assert.match(output,/test-get-callsite\.ts/);
142+
assert.match(output,/test-get-callsites\.ts/);
143143
assert.strictEqual(status,0);
144144
}
145145

@@ -148,7 +148,7 @@ const assert = require('node:assert');
148148
'--no-warnings',
149149
'--experimental-transform-types',
150150
'--no-enable-source-maps',
151-
fixtures.path('typescript/ts/test-get-callsite.ts'),
151+
fixtures.path('typescript/ts/test-get-callsites.ts'),
152152
]);
153153

154154
constoutput=stdout.toString();
@@ -157,7 +157,7 @@ const assert = require('node:assert');
157157
assert.match(output,/lineNumber:2/);
158158
assert.match(output,/column:18/);
159159
assert.match(output,/columnNumber:18/);
160-
assert.match(output,/test-get-callsite\.ts/);
160+
assert.match(output,/test-get-callsites\.ts/);
161161
assert.strictEqual(status,0);
162162
}
163163

@@ -166,15 +166,15 @@ const assert = require('node:assert');
166166
const{ status, stderr, stdout }=spawnSync(process.execPath,[
167167
'--no-warnings',
168168
'--experimental-transform-types',
169-
fixtures.path('typescript/ts/test-get-callsite-explicit.ts'),
169+
fixtures.path('typescript/ts/test-get-callsites-explicit.ts'),
170170
]);
171171

172172
constoutput=stdout.toString();
173173
assert.strictEqual(stderr.toString(),'');
174174
assert.match(output,/lineNumber:2/);
175175
assert.match(output,/column:18/);
176176
assert.match(output,/columnNumber:18/);
177-
assert.match(output,/test-get-callsite-explicit\.ts/);
177+
assert.match(output,/test-get-callsites-explicit\.ts/);
178178
assert.strictEqual(status,0);
179179
}
180180

0 commit comments

Comments
 (0)