htmldiff
Version:
HTML Diffing in JavaScript (CoffeeScript)
18 lines (13 loc) • 455 B
text/coffeescript
describe 'Diff', ->
beforeEach ->
= require '../src/htmldiff.coffee'
describe 'When both inputs are the same', ->
beforeEach ->
= 'input text', 'input text'
it 'should return the text', ->
(expect ).equal 'input text'
xdescribe 'When a letter is added', ->
beforeEach ->
= 'input', 'input 2'
it 'should mark the new letter', ->
(expect ).to.equal 'input <ins>2</ins>'