File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ testExample = (testcase) ->
8
8
diff = ' '
9
9
it ' should produce a diff' , ->
10
10
diff = fbpDiff .diff testcase .from , testcase .to , options
11
+ diff = diff .trim ()
11
12
chai .expect (diff).to .be .a ' string'
12
13
it ' diff should equal expected' , ->
13
- chai .expect (diff).to .equal testcase .diff
14
+ expected = testcase .diff .trim ()
15
+ chai .expect (diff).to .equal expected
14
16
15
17
loadTestCases = () ->
16
18
# currently node.js only
@@ -35,7 +37,7 @@ tests = loadTestCases()
35
37
36
38
describe ' Examples' , ->
37
39
it ' should exist' , ->
38
- chai .expect (tests).to .have .length .above 1
40
+ chai .expect (tests).to .have .length .above 13
39
41
40
42
for testcase in tests
41
43
describeUnlessSkipped = if testcase .skip then describe .skip else describe
You can’t perform that action at this time.
0 commit comments