Permalink
Browse files

Update test to new runner (use equal instead of custom eq)

  • Loading branch information...
1 parent 753c9e6 commit 7c6aeafee9b0b14f3fd92eb0b5342826b30095ef @justindujardin justindujardin committed Oct 29, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 test/tests.coffee
View
@@ -84,7 +84,7 @@ test "single line comment parsing", ->
# *Kick off the first language test*
testNextLanguage languageKeys.slice()
-
+
# **URL references should resolve across sections**
#
# Resolves [Issue 100](https://github.com/jashkenas/docco/issues/100)
@@ -101,20 +101,21 @@ test "url references", ->
outPath = path.join dataPath, "_urlreferences"
outFile = "#{outPath}/_urlref.html"
rimraf outPath, (error) ->
- eq not error, true
+ equal not error, true
Docco.document [sourceFile], output: outPath, ->
contents = fs.readFileSync(outFile).toString()
count = contents.match ///<a\shref="http://www.google.com">Google</a>///g
- eq count.length, 2, "find expected (2) resolved url references"
+ equal count.length, 2, "find expected (2) resolved url references"
+
# **Paths should be recursively created if needed**
#
# ensureDirectory should properly create complex output paths.
test "create complex paths that do not exist", ->
exist = fs.existsSync or path.existsSync
outputPath = path.join dataPath, 'complex/path/that/doesnt/exist'
rimraf outputPath, (error) ->
- eq not error, true
+ equal not error, true
Docco.ensureDirectory outputPath, ->
equal exist(outputPath), true, 'created output path'
stat = fs.statSync outputPath
- equal stat.isDirectory(), true, "target is directory"
+ equal stat.isDirectory(), true, "target is directory"

0 comments on commit 7c6aeaf

Please sign in to comment.