Add declared const Buffer spec

This commit is contained in:
Kevin Sawicki 2017-02-06 15:08:08 -08:00
parent 70010fdb8e
commit 7e138083ef
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,2 @@
const Buffer = 'declared Buffer'
module.exports = Buffer

View file

@ -69,6 +69,12 @@ describe('third-party module', function () {
assert.strictEqual(require('./fixtures/module/declare-global'), 'declared global')
})
})
describe('Buffer', function () {
it('can be declared in a module', function () {
assert.strictEqual(require('./fixtures/module/declare-buffer'), 'declared Buffer')
})
})
})
})