fix tests

This commit is contained in:
Edvin Hultberg 2017-07-27 16:51:11 +02:00
parent 1c83400c12
commit 2d6f39c037

View file

@ -764,12 +764,12 @@ describe "the commands", ->
test = (escapeChar, escaped) -> test = (escapeChar, escaped) ->
openEx() openEx()
submitNormalModeInputText(":substitute/,/\\#{escapeChar}/g") submitNormalModeInputText(":substitute/,/#{escapeChar}/g")
expect(editor.getText()).toEqual("abc#{escaped}def#{escaped}ghi") expect(editor.getText()).toEqual("abc#{escaped}def#{escaped}ghi")
it "replaces with a tab", -> test('t', '\t') it "replaces with a tab", -> test('\\t', '\t')
it "replaces with a linefeed", -> test('n', '\n') it "replaces with a linefeed", -> test('\\n', '\n')
it "replaces with a carriage return", -> test('r', '\r') it "replaces with a carriage return", -> test('\\r', '\r')
describe "case sensitivity", -> describe "case sensitivity", ->
describe "respects the smartcase setting", -> describe "respects the smartcase setting", ->