From 58f67e92d157ba4fb23ee1ada3541e376858e859 Mon Sep 17 00:00:00 2001 From: Clark Wang Date: Sun, 4 Jan 2015 18:24:29 +0800 Subject: [PATCH] fix jscs warning Signed-off-by: Clark Wang --- test/relations.integration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/relations.integration.js b/test/relations.integration.js index 59e77df2..edd90064 100644 --- a/test/relations.integration.js +++ b/test/relations.integration.js @@ -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;