From 557d81f17890cc7c5757cb18f4b4353eb9daebc5 Mon Sep 17 00:00:00 2001 From: Tim Griesser Date: Sun, 26 May 2013 20:20:28 -0400 Subject: [PATCH] missing a done or two --- core/test/ghost/api_posts_spec.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/test/ghost/api_posts_spec.js b/core/test/ghost/api_posts_spec.js index 1a85e65af2..d53626a8f5 100644 --- a/core/test/ghost/api_posts_spec.js +++ b/core/test/ghost/api_posts_spec.js @@ -46,7 +46,7 @@ found.attributes.title.should.equal(firstPost.attributes.title); done(); - }); + }, done); }); it('can edit', function (done) { @@ -87,9 +87,7 @@ createdPost.attributes.slug.should.equal(newPost.title.toLowerCase().replace(/ /g, '-'), 'slug is correct'); done(); - }, function (error) { - throw error; - }); + }, done); }); it('can delete', function (done) {