it('should pass object with correct values to save', function() {
var save = sinon.stub(Database, 'save');
var info = { name: 'test' };
var expectedUser = {
name: info.name,
nameLowercase: info.name.toLowerCase()
};
setupNewUser(info, function() { });
save.restore();
sinon.assert.calledWith(save, expectedUser);
});
测试一下,哈哈~
This text will be italic This will also be italic
This text will be bold This will also be bold
This text will be crossed
You can combine them
- Item 1
- Item 2
- Item 2a
- Item 2b
- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b
http://github.com - automatic! GitHub
As Kanye West said:
We're living the future so the present is our past.
This is an inline code: var example = true
console.log('Hello world!')
console.log('Hello world!')
First Header | Second Header |
---|---|
Content from cell 1 | Content from cell 2 |
Content in the first column | Content in the second column |
✨ 🐫 💥
This is a html code.
- 1
- 2
- 1
- 2
- 1
- 2
- 1
- 2