fix jscs warning

Signed-off-by: Clark Wang <clark.wangs@gmail.com>
This commit is contained in:
Clark Wang 2015-01-04 18:24:29 +08:00
parent 94b2a45a6c
commit 58f67e92d1
1 changed files with 2 additions and 2 deletions

View File

@ -1221,8 +1221,8 @@ describe('relations - integration', function() {
});
before(function createChapters(done) {
var test = this, book = test.book;
book.chapters.create({ name: 'Chapter 1' },
var test = this;
test.book.chapters.create({ name: 'Chapter 1' },
function(err, chapter) {
if (err) return done(err);
test.chapter = chapter;