Skip to content

Commit

Permalink
初步实现在跟目录上跑全局测试的脚本
Browse files Browse the repository at this point in the history
...待完成:完善 teambition-sdk-request 的测试。
  • Loading branch information
chuan6 committed Aug 16, 2017
1 parent d377fcb commit 8f9ab21
Show file tree
Hide file tree
Showing 29 changed files with 230 additions and 387 deletions.
4 changes: 2 additions & 2 deletions packages/teambition-sdk-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/// <reference path="./teambition.ts" />
import 'tslib'

import { forEach, clone, uuid, concat, dropEle, pagination } from './utils/index'
import { forEach, clone, uuid, concat, dropEle, pagination, capitalizeFirstLetter } from './utils/index'

export const Utils = { forEach, clone, uuid, concat, dropEle, pagination }
export const Utils = { forEach, clone, uuid, concat, dropEle, pagination, capitalizeFirstLetter }
export { PagingQuery, UrlPagingQuery } from './utils/internalTypes'
export { eventParser } from './sockets/EventParser'

Expand Down
11 changes: 0 additions & 11 deletions packages/teambition-sdk-core/test/apis/index.ts

This file was deleted.

88 changes: 0 additions & 88 deletions packages/teambition-sdk-core/test/apis/organization.spec.ts

This file was deleted.

85 changes: 0 additions & 85 deletions packages/teambition-sdk-core/test/apis/project.spec.ts

This file was deleted.

169 changes: 0 additions & 169 deletions packages/teambition-sdk-core/test/apis/search.spec.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/teambition-sdk-core/test/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ export * from './utils/httpErrorSpec'

export * from './mock/MockSpec'

import './apis'
import './sockets'
import './net'
2 changes: 1 addition & 1 deletion packages/teambition-sdk-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build_cjs": "rm -rf dist/cjs && tsc src/index.ts -m commonjs --outDir dist/cjs --sourcemap --inlineSources --target ES5 -d --diagnostics --pretty --strict --noUnusedLocals --noUnusedParameters --experimentalDecorators --suppressImplicitAnyIndexErrors --moduleResolution node --importHelpers --noEmitHelpers --lib es5,es2015.iterable,es2015.collection,es2015.promise,es2015.core,dom",
"build_test": "rm -rf spec-js && tsc test/app.ts -m commonjs --sourcemap --inlineSources --outDir spec-js --target ES2015 --diagnostics --pretty --experimentalDecorators --suppressImplicitAnyIndexErrors --types \"node,chai,sinon,sinon-chai\" --moduleResolution node",
"cover": "npm run build_test && rm -rf ./coverage && nyc --reporter=html --reporter=lcov --exclude=node_modules --exclude=spec-js/test --exclude=spec-js/mock --exclude=spec-js/src/sockets/SocketClient.js tman --mocha spec-js/test/app.js",
"cover": "npm run build_test && tman --mocha spec-js/test/app.js",
"lint": "tslint ./src/**/*.ts ./mock/**/*.ts ./test/*.ts ./test/apis/**/*.ts ./test/mock/**/*.ts ./test/utils/**/*.ts",
"test": "npm run lint && npm run cover"
},
Expand Down
1 change: 1 addition & 0 deletions packages/teambition-sdk-request/src/user/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import './addEmail'
import './get'
import './update'
Loading

0 comments on commit 8f9ab21

Please sign in to comment.