mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04: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", ->
|
describe "deleteUsersLearnedWords", ->
|
||||||
beforeEach ->
|
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)->
|
it "should get the word list for the given user", (done)->
|
||||||
@LearnedWordsManager.deleteUsersLearnedWords @token, =>
|
@LearnedWordsManager.deleteUsersLearnedWords @token, =>
|
||||||
@db.spellingPreferences.delete.calledWith(token: @token).should.equal true
|
@db.spellingPreferences.remove.calledWith(token: @token).should.equal true
|
||||||
done()
|
done()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue