You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varLib1=require('./lib1.js');varLib2=require('./lib2.js');varLib3=require('./lib3.js');varassert=require('assert');describe('Type of',function(){'use strict';it('all should be function',function(){assert.equal(typeof(Lib1),'function');assert.equal(typeof(Lib2),'function');assert.equal(typeof(Lib3),'function');});it('all should still be function in lib1',function(){varlib1=newLib1();assert.equal(lib1.lib2Type,'function');assert.equal(lib1.lib3Type,'function');});it('all should still be function in lib2',function(){varlib2=newLib2();assert.equal(lib2.lib1Type,'function');// failassert.equal(lib2.lib3Type,'function');});it('all should still be function in lib3',function(){varlib3=newLib3();assert.equal(lib3.lib1Type,'function');// failassert.equal(lib3.lib2Type,'function');});});
The text was updated successfully, but these errors were encountered:
Hi,
Given the type test below, the lib type isn't consistent between files. please see more detail at here: https://gist.github.com/dno/5a5190f888fa385ef61e
The text was updated successfully, but these errors were encountered: