Skip to content

Commit

Permalink
fixup: add getter test
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Mar 26, 2019
1 parent deb7778 commit 6043216
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/parallel/test-global-setters.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ assert.strictEqual(process, 'asdf');
assert.strictEqual(global.process, 'asdf');
global.process = _process;
assert.strictEqual(process, _process);
assert.strictEqual(
typeof Object.getOwnPropertyDescriptor(global, 'process').get,
'function');

assert.strictEqual(Buffer, _Buffer);
// eslint-disable-next-line no-global-assign
Expand All @@ -19,3 +22,6 @@ assert.strictEqual(Buffer, 'asdf');
assert.strictEqual(global.Buffer, 'asdf');
global.Buffer = _Buffer;
assert.strictEqual(Buffer, _Buffer);
assert.strictEqual(
typeof Object.getOwnPropertyDescriptor(global, 'Buffer').get,
'function');

0 comments on commit 6043216

Please sign in to comment.