From 2d6f39c03762355e6f89ab1abff92e12f2ad01be Mon Sep 17 00:00:00 2001 From: Edvin Hultberg Date: Thu, 27 Jul 2017 16:51:11 +0200 Subject: [PATCH] fix tests --- spec/ex-commands-spec.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/ex-commands-spec.coffee b/spec/ex-commands-spec.coffee index 4e3d839..6ca46d8 100644 --- a/spec/ex-commands-spec.coffee +++ b/spec/ex-commands-spec.coffee @@ -764,12 +764,12 @@ describe "the commands", -> test = (escapeChar, escaped) -> openEx() - submitNormalModeInputText(":substitute/,/\\#{escapeChar}/g") + submitNormalModeInputText(":substitute/,/#{escapeChar}/g") expect(editor.getText()).toEqual("abc#{escaped}def#{escaped}ghi") - it "replaces with a tab", -> test('t', '\t') - it "replaces with a linefeed", -> test('n', '\n') - it "replaces with a carriage return", -> test('r', '\r') + it "replaces with a tab", -> test('\\t', '\t') + it "replaces with a linefeed", -> test('\\n', '\n') + it "replaces with a carriage return", -> test('\\r', '\r') describe "case sensitivity", -> describe "respects the smartcase setting", ->