mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
Merge branch 'ho-delete-dict'
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user