Skip to content

Commit

Permalink
Updated code and tests for node 5
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenvelozo committed Nov 28, 2015
1 parent 8a1bf3f commit 3c34adf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "meadow",
"version": "0.1.17",
"version": "1.0.1",
"description": "A data access library.",
"main": "source/Meadow.js",
"scripts": {
Expand All @@ -25,19 +25,19 @@
},
"homepage": "https://github.com/stevenvelozo/meadow",
"devDependencies": {
"chai": "2.0.0",
"codeclimate-test-reporter": "0.0.4",
"coveralls": "^2.11.2",
"chai": "3.4.1",
"codeclimate-test-reporter": "0.1.1",
"coveralls": "2.11.4",
"groc": "^0.8.0",
"istanbul": "0.3.5",
"mocha": "2.1.0"
"istanbul": "0.4.1",
"mocha": "2.3.4"
},
"dependencies": {
"async": "^0.9.0",
"fable": "^0.1.11",
"foxhound": "0.0.15",
"is-my-json-valid": "^2.10.1",
"async": "1.5.0",
"fable": "~1.0.1",
"foxhound": "~1.0.1",
"is-my-json-valid": "2.12.3",
"mysql2": "0.15.8",
"underscore": "1.7.0"
"underscore": "1.8.3"
}
}
24 changes: 12 additions & 12 deletions test/Meadow-Provider-MySQL_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ suite
testMeadow.doCount(testMeadow.query.setScope('BadTable'),
function(pError, pQuery, pRecord)
{
Expect(pError)
.to.be.an('object');
Expect(pError.code)
.to.equal("ER_NO_SUCH_TABLE");
fDone();
}
)
Expand All @@ -560,8 +560,8 @@ suite
function(pError, pQuery, pQueryRead, pRecord)
{
// We should have no record because the default id is IDFableTest and our tables identity is IDAnimal
Expect(pError)
.to.be.an('object');
Expect(pError.code)
.to.equal('ER_BAD_FIELD_ERROR');
fDone();
}
)
Expand Down Expand Up @@ -658,8 +658,8 @@ suite
testMeadow.doReads(tmpQuery,
function(pError, pQuery, pRecord)
{
Expect(pError)
.to.be.an('object');
Expect(pError.code)
.to.equal('ER_BAD_FIELD_ERROR');
fDone();
}
)
Expand All @@ -678,8 +678,8 @@ suite
testMeadow.doRead(tmpQuery,
function(pError, pQuery, pRecord)
{
Expect(pError)
.to.be.an('object');
Expect(pError.code)
.to.equal('ER_BAD_FIELD_ERROR');
fDone();
}
)
Expand All @@ -698,8 +698,8 @@ suite
testMeadow.doDelete(tmpQuery,
function(pError, pQuery, pRecord)
{
Expect(pError)
.to.be.an('object');
Expect(pError.code)
.to.equal('ER_BAD_FIELD_ERROR');
fDone();
}
)
Expand Down Expand Up @@ -968,8 +968,8 @@ suite
testMeadow.doCreate(tmpQuery,
function(pError, pQuery, pQueryRead, pRecord)
{
Expect(pError)
.to.be.an('object');
Expect(pError.code)
.to.equal('ER_BAD_FIELD_ERROR');
fDone();
}
)
Expand Down

0 comments on commit 3c34adf

Please sign in to comment.