Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Prepare for 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed May 17, 2016
1 parent cd516e2 commit 8ad5171
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
##### 0.7.2 - 17 May 2016

###### Bug fixes
- Improve findAllGroupedWhere test

###### Other
- Tweak deps

##### 0.7.1 - 16 May 2016

###### Bug fixes
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "js-data-adapter",
"description": "Base adapter class that all other js-data adapters extend.",
"version": "0.7.1",
"version": "0.7.2",
"homepage": "https://github.com/js-data/js-data-adapter",
"repository": {
"type": "git",
Expand Down Expand Up @@ -64,10 +64,12 @@
"release": "npm test && repo-tools updates && repo-tools changelog && repo-tools authors"
},
"peerDependencies": {
"chai": "3.x",
"js-data": "^3.0.0-beta.6",
"mocha": "2.x",
"sinon": "1.x"
"js-data": "^3.0.0-beta.6"
},
"dependencies": {
"chai": "^3.5.0",
"mocha": "^2.4.5",
"sinon": "^1.17.4"
},
"devDependencies": {
"babel-plugin-syntax-async-functions": "6.8.0",
Expand Down
6 changes: 4 additions & 2 deletions test/findAll.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ export default function (options) {

if (options.hasFeature('findAllGroupedWhere')) {
it('should support filtering grouped "where" clauses', async function () {
this.toClear.push('Post')
const posts = await adapter.createMany(Post, [
{ status: 'draft', content: 'foo' },
{ status: 'broken', content: 'bar' },
Expand Down Expand Up @@ -484,10 +485,11 @@ export default function (options) {
'=': 'flagged'
}
}
]
],
orderBy: 'status'
}

assert.objectsEqual(await adapter.findAll(Post, query), [posts[0], posts[2], posts[4]])
assert.objectsEqual(await adapter.findAll(Post, query), [posts[0], posts[4], posts[2]])
})
}
})
Expand Down

0 comments on commit 8ad5171

Please sign in to comment.