bound 内置一个简单的单元测试,开发者可以自行扩展,通过以下命令运行测试,获取测试覆盖率。

    1. npm run test
    2. npm run test:cov

    扩展单元测试,请参考 这个文档