test: skip remote module related tests when enable_remote_module = false (#23557)
This commit is contained in:
parent
85fae67966
commit
fc468cce3b
4 changed files with 20 additions and 13 deletions
|
@ -6,6 +6,8 @@ delete window.Buffer;
|
|||
delete global.Buffer;
|
||||
|
||||
// Test that remote.js doesn't use Buffer global
|
||||
remote.require(path.join(__dirname, 'print_name.js')).echo(Buffer.from('bar'));
|
||||
if (remote) {
|
||||
remote.require(path.join(__dirname, 'print_name.js')).echo(Buffer.from('bar'));
|
||||
}
|
||||
|
||||
window.test = Buffer.from('buffer');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue