horiuchi/espoer-loader-bug — pull request #1 by twada (2014-07-22 13:09:34+00:00)
Title: 問題切り分けのために power-assert ではなく通常の assert を使ってみる

まず問題切り分けのために power-assert ではなく通常の assert を使ってみた結果、同様のエラーが出ました。実は espower-loader や power-assert と関係無くこのエラーが出る可能性が出てきました。

犯人は `Sequelize.import` でしょうか……?

```
$ grunt test
Running "clean:build" (clean) task

Running "copy:sequelize" (copy) task
Copied 4 files

Running "typescript:app" (typescript) task
6 files created. js: 2 files, map: 2 files, declaration: 2 files (1371ms)

Running "typescript:test" (typescript) task
2 files created. js: 1 file, map: 1 file, declaration: 0 files (1143ms)

Running "mochacli:tap" (mochacli) task

/path/to/espoer-loader-bug/lib/models/index.d.ts:4
declare var exportObj: {
^^^
SyntaxError: Unexpected token var
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at module.exports.Sequelize.import (/path/to/espoer-loader-bug/node_modules/sequelize/lib/sequelize.js:297:63)
at module.exports.lodash.extend.sequelize (/path/to/espoer-loader-bug/lib/models/index.js:16:33)
at Array.forEach (native)
at Object. (/path/to/espoer-loader-bug/lib/models/index.js:15:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/path/to/espoer-loader-bug/lib/routes/route.js:1:76)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/path/to/espoer-loader-bug/test/routes/route_test.js:3:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /path/to/espoer-loader-bug/node_modules/mocha/lib/mocha.js:172:27
at Array.forEach (native)
at Mocha.loadFiles (/path/to/espoer-loader-bug/node_modules/mocha/lib/mocha.js:169:14)
at Mocha.run (/path/to/espoer-loader-bug/node_modules/mocha/lib/mocha.js:356:31)
at Object. (/path/to/espoer-loader-bug/node_modules/mocha/bin/_mocha:366:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Warning: Use --force to continue.

Aborted due to warnings.
$
```

とりいそぎ、ご報告です。