Skip to content

Commit

Permalink
Clean up tests, add runner cmd to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Landolt committed Dec 22, 2014
1 parent 5c7796d commit a4a17b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"mappings": {
"tunguska": "http://github.com/kriszyp/tunguska/zipball/v0.2.2",
"rql": "jar:http://github.com/kriszyp/rql/zipball/v0.2.2!/",
"patr": "jar:http://github.com/kriszyp/patr/zipball/v0.2.2!/",
"patr": "jar:http://github.com/kriszyp/patr/zipball/v0.2.6!/",
"promised-io": "jar:http://github.com/kriszyp/promised-io/zipball/v0.2.2!/",
"json-schema": "http://github.com/kriszyp/json-schema/zipball/v0.2.1",
"mysql-native": "jar:http://github.com/sidorares/nodejs-mysql-native/zipball/master!/lib/mysql-native/",
Expand Down Expand Up @@ -65,7 +65,10 @@
"json-schema": ">=0.2.1"
},
"devDependencies": {
"patr": ">0.2.6"
"patr": ">=0.2.6"
},
"jars":["jars/perstore.jar"]
"jars":["jars/perstore.jar"],
"scripts": {
"test": "cd tests; node ."
}
}
4 changes: 3 additions & 1 deletion tests/data/TestStore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{1:{id:1, foo:2, rand:0.7013372050189607}, 2:{id:2, foo:1, bar:"hi"}, 3:{id:3, foo:1, bar:"hello"}}
{id:1, foo:2, rand:0.7013372050189607},
{id:2, foo:1, bar:"hi"},
{id:3, foo:1, bar:"hello"},
2 changes: 1 addition & 1 deletion tests/model.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require("assert"),
store = require("../stores").DefaultStore("TestStore"),
store = require("../stores").DefaultStore({ filename: "TestStore" }),
model = require("../model").Model(store, {
prototype: {
testMethod: function(){
Expand Down

0 comments on commit a4a17b8

Please sign in to comment.