Remove throws and assert object directly
This commit is contained in:
parent
0430380de1
commit
4e5b8ac3ee
1 changed files with 2 additions and 10 deletions
|
@ -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})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue