Remove throws and assert object directly

This commit is contained in:
Kevin Sawicki 2017-01-30 09:38:15 -08:00
parent 0430380de1
commit 4e5b8ac3ee

View file

@ -51,21 +51,13 @@ describe('third-party module', function () {
describe('global variables', function () { describe('global variables', function () {
describe('process', function () { describe('process', function () {
it('can be declared in a module', function () { it('can be declared in a module', function () {
var exportedProcess assert.strictEqual(require('./fixtures/module/declare-process'), require('process'))
assert.doesNotThrow(function () {
exportedProcess = require('./fixtures/module/declare-process')
})
assert.strictEqual(exportedProcess, require('process'))
}) })
}) })
describe('global', function () { describe('global', function () {
it('can be declared in a module', function () { it('can be declared in a module', function () {
var exportedGlobal assert.deepEqual(require('./fixtures/module/declare-global'), {__global: true})
assert.doesNotThrow(function () {
exportedGlobal = require('./fixtures/module/declare-global')
})
assert.deepEqual(exportedGlobal, {__global: true})
}) })
}) })
}) })