             expect(wordElement.querySelector('.snippet-completion').textContent).toBe 'something'
 
             wordElements = editorView.querySelectorAll('.autocomplete-plus span.word')
-            expect(wordElements).toHaveLength 3
+            expect(wordElements).toHaveLength 4
 
         it "accepts the snippet when autocomplete-plus:confirm is triggered", ->
           triggerAutocompletion(editor, true, 'm')

            atom.commands.dispatch(suggestionListView, 'autocomplete-plus:confirm')
            expect(editorView.querySelector('.autocomplete-plus')).not.toExist()
            expect(editor.getSelectedText()).toBe 'something'

    describe "when the matched prefix is highlighted", ->
      it 'highlights the prefix of the word in the suggestion list', ->

    describe "when match.snippet is used", ->
      beforeEach ->
        spyOn(provider, 'getSuggestions').andCallFake ({prefix}) ->
          list = ['method(${1:something})', 'method2(${1:something})', 'method3(${1:something})', 'namespace\\\\method4(${1:something})']
          ({snippet, replacementPrefix: prefix} for snippet in list)

      describe "when the snippets package is enabled", ->
