From 8da92907b12de535be28e2f1db55d0c1f5d768bd Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 2 Nov 2017 11:24:01 +0000 Subject: [PATCH] fix unit test --- .../spelling/test/unit/coffee/LearnedWordsManagerTests.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/spelling/test/unit/coffee/LearnedWordsManagerTests.coffee b/services/spelling/test/unit/coffee/LearnedWordsManagerTests.coffee index b9dd938b0a..3819a2fdd3 100644 --- a/services/spelling/test/unit/coffee/LearnedWordsManagerTests.coffee +++ b/services/spelling/test/unit/coffee/LearnedWordsManagerTests.coffee @@ -87,11 +87,11 @@ describe "LearnedWordsManager", -> describe "deleteUsersLearnedWords", -> beforeEach -> - @db.spellingPreferences.delete = sinon.stub().callsArgWith(1) + @db.spellingPreferences.remove = sinon.stub().callsArgWith(1) it "should get the word list for the given user", (done)-> @LearnedWordsManager.deleteUsersLearnedWords @token, => - @db.spellingPreferences.delete.calledWith(token: @token).should.equal true + @db.spellingPreferences.remove.calledWith(token: @token).should.equal true done()