User:Miĸaʟ/global.js

importArticles({   type: 'script',    articles: [    	'u:dev:MediaWiki:SandboxTab/code.js',    	] });

describe('virtual type', => {

it('postCount return number of posts', (done) => { let user = new User({name:'Miĸaʟ','posts':[{title:'postTitle'}]})

user.save .then( => User.findOne({name:'Miĸaʟ'})) .then((user) => {  assert(user.postCount === 1);   done;  }) });

})