This repository was archived by the owner on Feb 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "presets" : [" latest" ],
3- "plugins" : [" transform-export-extensions" , " syntax-trailing-function-commas" ]
3+ "plugins" : [" transform-export-extensions" , " syntax-trailing-function-commas" ],
4+ "env" : {
5+ "test" : {
6+ "presets" : [" @ava/stage-4" ]
7+ }
8+ }
49}
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class Maker {
3434 creator ( scopedCtx )
3535 this . ctx . scoped [ name ] = scopedCtx
3636 }
37+
3738 /**
3839 * Add HTTP method listeners to local
3940 * @param {string } method
Original file line number Diff line number Diff line change 1+ import test from 'ava'
2+ import { createRest } from './index'
3+
4+ test ( 'Base structure' , t => {
5+ t . deepEqual ( createRest ( r => { } ) , {
6+ before : [ ] ,
7+ after : [ ] ,
8+ scoped : { } ,
9+ local : { } ,
10+ } )
11+ } )
Original file line number Diff line number Diff line change 77 "dev" : " nodemon -w lib -w examples -x \" npm run build && node examples/test.js\" " ,
88 "clean" : " rimraf ./dist ./docs" ,
99 "build" : " babel -d ./dist ./lib" ,
10- "test" : " echo \" Error: no test specified \" && exit 1 " ,
10+ "test" : " NODE_ENV= test ava " ,
1111 "lint" : " eslint ./lib" ,
1212 "docs" : " documentation build -f html -o docs" ,
1313 "deploy:docs" : " buildbranch gh-pages docs" ,
3333 "ramda" : " ^0.23.0"
3434 },
3535 "devDependencies" : {
36+ "@ava/babel-preset-stage-4" : " ^1.0.0" ,
37+ "ava" : " ^0.19.1" ,
3638 "babel-cli" : " ^6.23.0" ,
3739 "babel-core" : " ^6.23.1" ,
3840 "babel-eslint" : " ^7.1.1" ,
3941 "babel-plugin-syntax-trailing-function-commas" : " ^6.22.0" ,
4042 "babel-plugin-transform-export-extensions" : " ^6.22.0" ,
4143 "babel-preset-latest" : " ^6.22.0" ,
44+ "babel-register" : " ^6.24.1" ,
4245 "buildbranch" : " ^2.0.0" ,
4346 "documentation" : " ^4.0.0-beta.18" ,
4447 "eslint" : " ^3.17.0" ,
4750 "nodemon" : " ^1.11.0" ,
4851 "rimraf" : " ^2.6.1" ,
4952 "stringify-object" : " ^3.2.0"
53+ },
54+ "ava" : {
55+ "files" : [
56+ " lib/*.test.js"
57+ ],
58+ "source" : [
59+ " lib/*.js" ,
60+ " !lib/*.test.js"
61+ ],
62+ "require" : " babel-register" ,
63+ "concurrency" : 4 ,
64+ "babel" : " inherit"
5065 }
5166}
You can’t perform that action at this time.
0 commit comments