mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01: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
|
|
@ -7,4 +7,4 @@ interface CallSite {
|
||||||
|
|
||||||
const callSite = getCallSites({ sourceMap: false })[0];
|
const callSite = getCallSites({ sourceMap: false })[0];
|
||||||
|
|
||||||
console.log('mapCallSite: ', callSite);
|
console.log('mapCallSites: ', callSite);
|
||||||
|
|
@ -7,4 +7,4 @@ interface CallSite {
|
||||||
|
|
||||||
const callSite = getCallSites()[0];
|
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, [
|
const { status, stderr, stdout } = spawnSync(process.execPath, [
|
||||||
'--no-warnings',
|
'--no-warnings',
|
||||||
'--experimental-transform-types',
|
'--experimental-transform-types',
|
||||||
fixtures.path('typescript/ts/test-get-callsite.ts'),
|
fixtures.path('typescript/ts/test-get-callsites.ts'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const output = stdout.toString();
|
const output = stdout.toString();
|
||||||
|
|
@ -139,7 +139,7 @@ const assert = require('node:assert');
|
||||||
assert.match(output, /lineNumber: 8/);
|
assert.match(output, /lineNumber: 8/);
|
||||||
assert.match(output, /column: 18/);
|
assert.match(output, /column: 18/);
|
||||||
assert.match(output, /columnNumber: 18/);
|
assert.match(output, /columnNumber: 18/);
|
||||||
assert.match(output, /test-get-callsite\.ts/);
|
assert.match(output, /test-get-callsites\.ts/);
|
||||||
assert.strictEqual(status, 0);
|
assert.strictEqual(status, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -148,7 +148,7 @@ const assert = require('node:assert');
|
||||||
'--no-warnings',
|
'--no-warnings',
|
||||||
'--experimental-transform-types',
|
'--experimental-transform-types',
|
||||||
'--no-enable-source-maps',
|
'--no-enable-source-maps',
|
||||||
fixtures.path('typescript/ts/test-get-callsite.ts'),
|
fixtures.path('typescript/ts/test-get-callsites.ts'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const output = stdout.toString();
|
const output = stdout.toString();
|
||||||
|
|
@ -157,7 +157,7 @@ const assert = require('node:assert');
|
||||||
assert.match(output, /lineNumber: 2/);
|
assert.match(output, /lineNumber: 2/);
|
||||||
assert.match(output, /column: 18/);
|
assert.match(output, /column: 18/);
|
||||||
assert.match(output, /columnNumber: 18/);
|
assert.match(output, /columnNumber: 18/);
|
||||||
assert.match(output, /test-get-callsite\.ts/);
|
assert.match(output, /test-get-callsites\.ts/);
|
||||||
assert.strictEqual(status, 0);
|
assert.strictEqual(status, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -166,7 +166,7 @@ const assert = require('node:assert');
|
||||||
const { status, stderr, stdout } = spawnSync(process.execPath, [
|
const { status, stderr, stdout } = spawnSync(process.execPath, [
|
||||||
'--no-warnings',
|
'--no-warnings',
|
||||||
'--experimental-transform-types',
|
'--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();
|
const output = stdout.toString();
|
||||||
|
|
@ -174,7 +174,7 @@ const assert = require('node:assert');
|
||||||
assert.match(output, /lineNumber: 2/);
|
assert.match(output, /lineNumber: 2/);
|
||||||
assert.match(output, /column: 18/);
|
assert.match(output, /column: 18/);
|
||||||
assert.match(output, /columnNumber: 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);
|
assert.strictEqual(status, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user