Add spec for registering/requiring Coffeescript

This commit is contained in:
Kevin Sawicki 2017-02-07 08:48:01 -08:00
parent 5cd18fe32a
commit 84f8bfbdef
2 changed files with 10 additions and 0 deletions

View file

@ -48,6 +48,15 @@ describe('third-party module', function () {
})
})
describe('coffee-script', function () {
it('can be registered and used to require .coffee files', function () {
assert.doesNotThrow(function () {
require('coffee-script').register()
assert.strictEqual(require('./fixtures/module/test.coffee'), true)
})
})
})
describe('global variables', function () {
describe('process', function () {
it('can be declared in a module', function () {