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
270 B
16 lines
270 B
4 years ago
|
'use strict'
|
||
|
|
||
|
const assert = require('assert')
|
||
|
|
||
|
const one = require('./')
|
||
|
const two = require('./')
|
||
|
|
||
|
assert.notEqual(one, two)
|
||
|
two.info = () => 'info'
|
||
|
|
||
|
const result1 = one.info()
|
||
|
assert.equal(result1, undefined)
|
||
|
|
||
|
const result2 = two.info()
|
||
|
assert.equal(result2, 'info')
|