Skip to content

Commit

Permalink
fix(tests): setup and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausTrainer committed Oct 7, 2016
1 parent 64795e4 commit e700687
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "index.js",
"scripts": {
"lint": "standard",
"test": "npm run lint && tape test | tap-spec",
"test": "npm run lint && test/bin/run-tests",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"author": "Klaus Trainer <[email protected]>",
Expand Down
10 changes: 10 additions & 0 deletions test/bin/run-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

NPM_BIN_DIR="$(npm bin)"

cp node_modules/aws-sdk/apis/dynamodb-2012-08-10.waiters2.json test/node_modules/aws-sdk/apis/dynamodb-2012-08-10.waiters2.json.orig
cp test/node_modules/aws-sdk/apis/dynamodb-2012-08-10.waiters2.json node_modules/aws-sdk/apis/dynamodb-2012-08-10.waiters2.json
$NPM_BIN_DIR/tape test | $NPM_BIN_DIR/tap-spec
status=$?
cp test/node_modules/aws-sdk/apis/dynamodb-2012-08-10.waiters2.json.orig node_modules/aws-sdk/apis/dynamodb-2012-08-10.waiters2.json
return $status
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const dynamodbOptions = {

const startDbServer = (cb) => {
const server = dynalite({
createTableMs: 0,
deleteTableMs: 0,
updateTableMs: 0
createTableMs: 20,
deleteTableMs: 20,
updateTableMs: 20
})

server.listen((err) => {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e700687

Please sign in to comment.