             configDir: path.resolve __dirname, "../testFixtures/test"
         }
 
-        content = """
+        content = Mocha.utils.clean("""
             d3 = require("d3/bar.js");
-        """
-        expectedContent = """
+        """)
+        expectedContent = Mocha.utils.clean("""
             d3 = require('./../foo/bar.js');
-        """
+        """)
 
         transformTools.runTransform aliasifyWithConfig, jsFile, {content}, (err, result) ->
             return done err if err

path = require 'path'
assert = require 'assert'
transformTools = require 'browserify-transform-tools'

aliasify = require '../src/aliasify'
testDir = path.resolve __dirname, "../testFixtures/test"
testWithRelativeConfigDir = path.resolve __dirname, "../testFixtures/testWithRelativeConfig"


        transformTools.runTransform aliasifyWithConfig, jsFile, (err, result) ->
            return done err if err
            assert.equal Mocha.utils.clean(result), Mocha.utils.clean("""
                d3 = require('./../foo/bar.js');
                _ = require("underscore");
            """)
            done()

    it "should allow paths after an alias", (done) ->
