fix: tests

This commit is contained in:
Typicode
2016-05-15 17:21:15 +02:00
parent 71b6c95b4a
commit 26c099bec4
2 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ describe('cli', function () {
request.post('/posts')
.send({ title: 'hello' })
.end(function () {
var str = fs.readFileSync(dbFile, 'utf8')
setTimeout(function () {
var str = fs.readFileSync(dbFile, 'utf8')
assert(str.indexOf('hello') !== -1)
done()
}, 1000)

View File

@ -614,7 +614,7 @@ describe('Server', function () {
describe('router.db._.id', function (done) {
beforeEach(function () {
router.db.getState({
router.db.setState({
posts: [
{ _id: 1 }
]