mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
436 B
16 lines
436 B
15 years ago
|
process.mixin(require("./common"));
|
||
|
|
||
|
var target = function() {};
|
||
|
process.mixin(target, {
|
||
|
foo: 'bar'
|
||
|
});
|
||
|
|
||
|
assert.equal('bar', target.foo);
|
||
|
|
||
|
// This test verifies there are no DOM-related aspects to process.mixin which
|
||
|
// originally had been in there due to its jQuery origin.
|
||
|
var fakeDomElement = {deep: {nodeType: 4}};
|
||
|
target = {};
|
||
|
process.mixin(true, target, fakeDomElement);
|
||
|
|
||
|
assert.notStrictEqual(target.deep, fakeDomElement.deep);
|