             }
         }
 
-        expectedContent = """
+        expectedContent = Mocha.utils.clean("""
             var foo = require('../foo/foo.js');
-        """
+        """)
 
         transformTools.runTransform aliasifyWithConfig, jsFile, (err, result) ->
             return done err if err

                    }
                }
            }
            """
            done()

    it "passes supports relative path option", (done) ->

        jsFile = path.resolve __dirname, "../testFixtures/test/src/index.js"
        transformTools.runTransform aliasify, jsFile, (err, result) ->
            return done err if err
            assert.equal Mocha.utils.clean(result), Mocha.utils.clean("""
                d3 = require('./../shims/d3.js');
                _ = require('lodash');
            """)
            done()

    it "should correctly transform a file when the configuration is in a different directory", (done) ->
