Git Product home page Git Product logo

life's Introduction

LifeGame

使用方法

方法一:测试网址

方法二:下载

  • 点击 page 下的 index.html 在浏览器下查看即可

端到端测试

  • 如果改动了index.html,将更新后的代码放到test_production,修改引入路径

测试规则

  • 将功能代码放置于main文件夹下,以功能分组

  • 在写功能代码时

    // 定义函数
    function test(){
    
    }
    // 暴露函数
    module.exports = test;
  • spec下写测试代码,首先引入函数,格式如下

    const 函数名 = require('../main/实现文件.js);
  • 运行测试

    npm test

样例

  • main-spec.js

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.