Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lzztt committed Sep 19, 2016
1 parent ac37d83 commit 5e7d4fb
Show file tree
Hide file tree
Showing 8 changed files with 820 additions and 1,430 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ test-cov:
babel --plugins='external-helpers' src -d build -s && \
babel-external-helpers -l asyncToGenerator > build/helper.js && \
babel test -d build/test -s && \
sed -i -e 's@../src@..@' -e "s@describe('@describe('cov:@" build/test/*.test.js && \
sed -i -e 's@../src@..@' -e "s@describe('@describe('cov: @" \
-e 's@describe(`@describe(`cov: @' build/test/*.test.js && \
istanbul cover -x build/helper.js -- \
./node_modules/.bin/_mocha --require build/helper.js --bail \
build/test
Expand All @@ -22,7 +23,8 @@ test-travis:
babel --plugins='external-helpers' src -d build -s && \
babel-external-helpers -l asyncToGenerator > build/helper.js && \
babel test -d build/test -s && \
sed -i -e 's@../src@..@' -e "s@describe('@describe('cov:@" build/test/*.test.js && \
sed -i -e 's@../src@..@' -e "s@describe('@describe('cov: @" \
-e 's@describe(`@describe(`cov: @' build/test/*.test.js && \
istanbul cover -x build/helper.js --report lcovonly -- \
./node_modules/.bin/_mocha --require build/helper.js --bail \
build/test
Expand All @@ -31,7 +33,9 @@ dist: src/*.js test/*.js
rm -rf dist && \
babel src -d dist --no-comments && \
babel test -d dist/test && \
sed -i -e 's@../src/session@../..@' -e 's@../src/@../@' -e "s@describe('@describe('dist:@" dist/test/*.test.js && \
sed -i -e 's@../src/session@../..@' -e 's@../src/@../@' \
-e "s@describe('@describe('dist: @" -e 's@describe(`@describe(`dist: @' \
dist/test/*.test.js && \
mocha dist/test && \
rm -rf dist/test

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koa-session-minimal",
"version": "3.0.1",
"version": "3.0.2",
"description": "Minimal implementation of session middleware for Koa 2. Inspired by and compatible with koa-generic-session",
"main": "dist/session.js",
"scripts": {
Expand Down
Loading

0 comments on commit 5e7d4fb

Please sign in to comment.