Git Product home page Git Product logo

black-technology's Introduction

黑科技集锦附单元测试

目录结构

+coverage   单元测试结果目录
+src        源代码目录
+test       单元测试目录

注意事项

  • JS统一使用ES6/ES5语法
  • 第三方库,例如mocha和istanbul 需要全局安装

第三方库参考文档

依赖安装

  • 安装node
  • 安装全局的npm
  • 安装全局mocha、istanbul
  • 安装工程依赖
cd path/to/project
npm install

测试

  • 启用单元测试会生成一个coverage文件夹,存放测试结果文件,当然,控制台也会展示简略信息。
npm run test

黑科技集锦

  • 1、toString 黑科技应用
  • 2、操作符及二元运算黑科技

其他获取方式

  • npm install bt_mao 可以获取最新代码

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.