13c887d4c9
It was used for testing modules not working while compiling, since the module version increases for ABI breakage, it is not useful anymore.
28 lines
712 B
CoffeeScript
28 lines
712 B
CoffeeScript
assert = require 'assert'
|
|
fs = require 'fs'
|
|
path = require 'path'
|
|
temp = require 'temp'
|
|
|
|
describe 'third-party module', ->
|
|
fixtures = path.join __dirname, 'fixtures'
|
|
temp.track()
|
|
|
|
describe 'runas', ->
|
|
it 'can be required in renderer', ->
|
|
require 'runas'
|
|
|
|
it 'can be required in node binary', (done) ->
|
|
runas = path.join fixtures, 'module', 'runas.js'
|
|
child = require('child_process').fork runas
|
|
child.on 'message', (msg) ->
|
|
assert.equal msg, 'ok'
|
|
done()
|
|
|
|
describe 'q', ->
|
|
Q = require 'q'
|
|
|
|
describe 'Q.when', ->
|
|
it 'emits the fullfil callback', (done) ->
|
|
Q(true).then (val) ->
|
|
assert.equal val, true
|
|
done()
|