'use babel'

import ClangRenameCommand from '../lib/clang-rename-command'

describe('ClangRenameCommand ', () => {
  it('invokes the command', () => {
    const clangRenameCommand = new ClangRenameCommand('./spec/bin/clang-rename')

    let result = null
    waitsForPromise(() => {
      return clangRenameCommand.rename([], 0, 'bar', 'foo.cpp').then(output => {
        result = output
        return output
      })
    })
    runs(() => {
      expect(result).toBe(`-offset 0 -new-name bar foo.cpp`)
    })
  })
})

@@ -462,17 +462,17 @@
 t).toBe(
-%60
+'
 -offset 
@@ -498,9 +498,9 @@
 .cpp
-%60
+'
 )%0A  

Fix the test case of clang-rename