Original:
1 | .a { |
Original:
1 | .a { |
坑说:Jasmine
的any(Object)
不能替代any({premitive type})
,可以考虑使用anything()
坑位:使用toHaveBeenCalledWith
测试函数被调用时的参数。
当参数列表太长(如:func(p1, p2, p3){...}
)的时候,往往只需要验证某一部分参数正确性,这个时候使用any()
。
用markdown来写博客简直不要太爽!
有了这种黑客技,不得不说很激发写博客的热情,试试看吧!
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment