mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge branch 'ho-delete-dict'
This commit is contained in:
commit
644f8834ef
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue