Skip to content

Commit 26c099b

Browse files
committed
fix: tests
1 parent 71b6c95 commit 26c099b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/cli/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ describe('cli', function () {
7373
request.post('/posts')
7474
.send({ title: 'hello' })
7575
.end(function () {
76-
var str = fs.readFileSync(dbFile, 'utf8')
7776
setTimeout(function () {
77+
var str = fs.readFileSync(dbFile, 'utf8')
7878
assert(str.indexOf('hello') !== -1)
7979
done()
8080
}, 1000)

test/server/plural.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ describe('Server', function () {
614614
describe('router.db._.id', function (done) {
615615

616616
beforeEach(function () {
617-
router.db.getState({
617+
router.db.setState({
618618
posts: [
619619
{ _id: 1 }
620620
]

0 commit comments

Comments
 (0)