09 2018 档案

摘要:jest Enzyme 文档 为什么要写测试 单元测试(unit testing)指的是以软件的单元(unit)为单位,对软件进行测试。单元可以是一个函数,也可以是一个模块或组件。它的基本特征就是,只要输入不变,必定返回同样的输出。 单元测试的步骤如下 准备所有的测试条件 it('test a') 阅读全文
posted @ 2018-09-14 00:40 Ajanuw 阅读(111) 评论(0) 推荐(0)
摘要:"youtube" "cpan" "官方文档" hello world morbo main.perl Server available at http://127.0.0.1:3000 路由 阅读全文
posted @ 2018-09-13 20:18 Ajanuw
摘要:https://www.cnblogs.com/panwenbin-logs/p/8007348.html github 文档 docker 官方文档 Dockerfile 用于制作docker镜像的设计稿 # 使用基础镜像,本地没有会从registry拉取,from必须是第一个指令 from pe 阅读全文
posted @ 2018-09-13 13:24 Ajanuw 阅读(249) 评论(0) 推荐(0)
摘要:"mdn" 前端代码 "github" 点击上传 async function main() { const l = console.log let fileEle = document.querySelector(' a') fileEle.onchange = e = { let files = 阅读全文
posted @ 2018-09-10 00:07 Ajanuw 阅读(4199) 评论(0) 推荐(0)
摘要:登录 查看当前所在位置包的信息 查看npm配置 λ npm config list λ npm config set registry http://registry.npmjs.org/ // 把原来配置的淘宝源切换回npm λ npm whoami // 切换后再看下当前登录的用户 发布 再次发 阅读全文
posted @ 2018-09-09 21:04 Ajanuw 阅读(413) 评论(0) 推荐(0)
摘要:官网文档 $ npm i -D @types/multer 上传单文件 import { Post, UseInterceptors, UploadedFile } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/pla 阅读全文
posted @ 2018-09-02 20:55 Ajanuw 阅读(4788) 评论(0) 推荐(1)
摘要:"Docs: https://docs.nestjs.com/techniques/mvc" 新版本需要设置为NestExpressApplication main.js 加载静态页面 yarn add ejs sendFile 阅读全文
posted @ 2018-09-02 17:35 Ajanuw 阅读(5188) 评论(0) 推荐(1)