mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
test: rename to getCallSites
PR-URL: https://github.com/nodejs/node/pull/57948 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
6bf7fd7f4e
commit
fba9c27861
3 changed files with 8 additions and 8 deletions
|
@ -7,4 +7,4 @@ interface CallSite {
|
|||
|
||||
const callSite = getCallSites({ sourceMap: false })[0];
|
||||
|
||||
console.log('mapCallSite: ', callSite);
|
||||
console.log('mapCallSites: ', callSite);
|
|
@ -7,4 +7,4 @@ interface CallSite {
|
|||
|
||||
const callSite = getCallSites()[0];
|
||||
|
||||
console.log('getCallSite: ', callSite);
|
||||
console.log('getCallSites: ', callSite);
|
|
@ -131,7 +131,7 @@ const assert = require('node:assert');
|
|||
const { status, stderr, stdout } = spawnSync(process.execPath, [
|
||||
'--no-warnings',
|
||||
'--experimental-transform-types',
|
||||
fixtures.path('typescript/ts/test-get-callsite.ts'),
|
||||
fixtures.path('typescript/ts/test-get-callsites.ts'),
|
||||
]);
|
||||
|
||||
const output = stdout.toString();
|
||||
|
@ -139,7 +139,7 @@ const assert = require('node:assert');
|
|||
assert.match(output, /lineNumber: 8/);
|
||||
assert.match(output, /column: 18/);
|
||||
assert.match(output, /columnNumber: 18/);
|
||||
assert.match(output, /test-get-callsite\.ts/);
|
||||
assert.match(output, /test-get-callsites\.ts/);
|
||||
assert.strictEqual(status, 0);
|
||||
}
|
||||
|
||||
|
@ -148,7 +148,7 @@ const assert = require('node:assert');
|
|||
'--no-warnings',
|
||||
'--experimental-transform-types',
|
||||
'--no-enable-source-maps',
|
||||
fixtures.path('typescript/ts/test-get-callsite.ts'),
|
||||
fixtures.path('typescript/ts/test-get-callsites.ts'),
|
||||
]);
|
||||
|
||||
const output = stdout.toString();
|
||||
|
@ -157,7 +157,7 @@ const assert = require('node:assert');
|
|||
assert.match(output, /lineNumber: 2/);
|
||||
assert.match(output, /column: 18/);
|
||||
assert.match(output, /columnNumber: 18/);
|
||||
assert.match(output, /test-get-callsite\.ts/);
|
||||
assert.match(output, /test-get-callsites\.ts/);
|
||||
assert.strictEqual(status, 0);
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ const assert = require('node:assert');
|
|||
const { status, stderr, stdout } = spawnSync(process.execPath, [
|
||||
'--no-warnings',
|
||||
'--experimental-transform-types',
|
||||
fixtures.path('typescript/ts/test-get-callsite-explicit.ts'),
|
||||
fixtures.path('typescript/ts/test-get-callsites-explicit.ts'),
|
||||
]);
|
||||
|
||||
const output = stdout.toString();
|
||||
|
@ -174,7 +174,7 @@ const assert = require('node:assert');
|
|||
assert.match(output, /lineNumber: 2/);
|
||||
assert.match(output, /column: 18/);
|
||||
assert.match(output, /columnNumber: 18/);
|
||||
assert.match(output, /test-get-callsite-explicit\.ts/);
|
||||
assert.match(output, /test-get-callsites-explicit\.ts/);
|
||||
assert.strictEqual(status, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue