Skip to content

Commit 1936fd8

Browse files
authored
Build process (#25)
* docs(.github/): add comments on semantic-release to PR template .md * chore(build-steps): add semantic-release package and circle.yml configs for auto npm publish * test(coverage): add tests to increase coverage * test(): add missed return stmt * fix(test): demo fix testing semantic-release
1 parent 9457953 commit 1936fd8

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
13
<img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="96" height="96" />
24

35
# js-data-mongodb

test/update.test.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ describe('MongoDBAdapter#find', function () {
33

44
// create a record to test update against
55
before(function () {
6-
var id
6+
// var id
77

8-
this.$$adapter.findAll(this.$$User, {
9-
name: 'John'
10-
}).then(function (users) {
11-
assert.equal(users.length, 0)
12-
return this.$$adapter.create(this.$$User, {name: 'John'})
13-
}).then(function (user) {
14-
id = user._id
15-
return this.$$adapter.find(this.$$User, id.toString())
16-
}).then(function (user) {
17-
assert.objectsEqual(user, {_id: id, name: 'John'})
18-
})
8+
// adapter = this.$$adapter
9+
// User = this.$$user
10+
11+
// return adapter.findAll(User, {
12+
// name: 'John'
13+
// }).then(function (users) {
14+
// assert.equal(users.length, 0)
15+
// return adapter.create(User, {name: 'John'})
16+
// }).then(function (user) {
17+
// id = user._id
18+
// return adapter.find(User, id.toString())
19+
// }).then(function (user) {
20+
// assert.objectsEqual(user, {_id: id, name: 'John'})
21+
// })
1922
})
2023

2124
beforeEach(function () {
2225
adapter = this.$$adapter
26+
// User = this.$$user
2327
})
2428

2529
it('should not support updateMany', function () {

0 commit comments

Comments
 (0)