Created
May 19, 2014 23:52
-
-
Save fatso83/f8881782fbc75614baf9 to your computer and use it in GitHub Desktop.
Errors when running mocha tests of npm-kit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[31m 4 failing[0m | |
[0m 1) Kit should parse imports: | |
[0m[31m Error: Line 1 in imports.kit: You're attempting to import a file that does not exist in the specified location: someFile.kit" -->[0m[90m | |
at Kit._findFile (C:\tmp\node-kit\lib\node-kit.js:365:11) | |
at Kit._handleImport (C:\tmp\node-kit\lib\node-kit.js:316:21) | |
at Kit._compileToken (C:\tmp\node-kit\lib\node-kit.js:285:35) | |
at Kit.compile (C:\tmp\node-kit\lib\node-kit.js:110:14) | |
at Kit.toString (C:\tmp\node-kit\lib\node-kit.js:122:28) | |
at kit (C:\tmp\node-kit\lib\node-kit.js:21:25) | |
at Context.<anonymous> (C:\tmp\node-kit\test\node-kit.test.js:18:9) | |
at callFn (C:\tmp\node-kit\node_modules\mocha\lib\runnable.js:223:21) | |
at Test.Runnable.run (C:\tmp\node-kit\node_modules\mocha\lib\runnable.js:216:7) | |
at Runner.runTest (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:373:10) | |
at C:\tmp\node-kit\node_modules\mocha\lib\runner.js:451:12 | |
at next (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:298:14) | |
at C:\tmp\node-kit\node_modules\mocha\lib\runner.js:308:7 | |
at next (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:246:23) | |
at Immediate._onImmediate (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:275:5) | |
at processImmediate [as _immediateCallback] (timers.js:374:17) | |
[0m | |
[0m 2) Kit should parse variables: | |
[31mAssertionError: expected '\n\n\r\n<body>\r\n <p> This text is amazing --> </p>\r\n <div style="width: 40px -->;"> Stuff </div>\r\n</body>\r\n\r\n\n\n\n\n' to equal '\r\n\r\n\r\n<body>\r\n <p> This text is amazing </p>\r\n <div style="width: 40px;"> Stuff </div>\r\n</body>\r\n\r\n\r\n\r\n\r\n\r\n'[0m | |
[42m+ expected[0m [41m- actual[0m | |
[42m+"\r\n\r\n\r\n<body>\r\n <p> This text is amazing </p>\r\n <div style=\"width: 40px;\"> Stuff </div>\r\n</body>\r\n\r\n\r\n\r\n\r\n\r\n"[0m | |
[41m-"\n\n\r\n<body>\r\n <p> This text is amazing --> </p>\r\n <div style=\"width: 40px -->;\"> Stuff </div>\r\n</body>\r\n\r\n\n\n\n\n"[0m | |
[0m[90m | |
at Assertion.assertEqual (C:\tmp\node-kit\node_modules\chai\lib\chai\core\assertions.js:395:12) | |
at Assertion.ctx.(anonymous function) [as equal] (C:\tmp\node-kit\node_modules\chai\lib\chai\utils\addMethod.js:40:25) | |
at Context.<anonymous> (C:\tmp\node-kit\test\node-kit.test.js:22:59) | |
at callFn (C:\tmp\node-kit\node_modules\mocha\lib\runnable.js:223:21) | |
at Test.Runnable.run (C:\tmp\node-kit\node_modules\mocha\lib\runnable.js:216:7) | |
at Runner.runTest (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:373:10) | |
at C:\tmp\node-kit\node_modules\mocha\lib\runner.js:451:12 | |
at next (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:298:14) | |
at C:\tmp\node-kit\node_modules\mocha\lib\runner.js:308:7 | |
at next (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:246:23) | |
at Immediate._onImmediate (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:275:5) | |
at processImmediate [as _immediateCallback] (timers.js:374:17) | |
[0m | |
[0m 3) Kit should parse variables from parent in child files: | |
[0m[31m Error: Line 2 in variablesImport.kit: You're attempting to import a file that does not exist in the specified location: myVar -->.kit[0m[90m | |
at Kit._findFile (C:\tmp\node-kit\lib\node-kit.js:365:11) | |
at Kit._handleImport (C:\tmp\node-kit\lib\node-kit.js:316:21) | |
at Kit._compileToken (C:\tmp\node-kit\lib\node-kit.js:285:35) | |
at Kit.compile (C:\tmp\node-kit\lib\node-kit.js:110:14) | |
at Kit.toString (C:\tmp\node-kit\lib\node-kit.js:122:28) | |
at kit (C:\tmp\node-kit\lib\node-kit.js:21:25) | |
at Context.<anonymous> (C:\tmp\node-kit\test\node-kit.test.js:26:9) | |
at callFn (C:\tmp\node-kit\node_modules\mocha\lib\runnable.js:223:21) | |
at Test.Runnable.run (C:\tmp\node-kit\node_modules\mocha\lib\runnable.js:216:7) | |
at Runner.runTest (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:373:10) | |
at C:\tmp\node-kit\node_modules\mocha\lib\runner.js:451:12 | |
at next (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:298:14) | |
at C:\tmp\node-kit\node_modules\mocha\lib\runner.js:308:7 | |
at next (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:246:23) | |
at Immediate._onImmediate (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:275:5) | |
at processImmediate [as _immediateCallback] (timers.js:374:17) | |
[0m | |
[0m 4) Kit should throw an error for undefined variables: | |
[0m[31m AssertionError: expected undefined to exist[0m[90m | |
at Assertion.<anonymous> (C:\tmp\node-kit\node_modules\chai\lib\chai\core\assertions.js:300:10) | |
at Assertion.Object.defineProperty.get (C:\tmp\node-kit\node_modules\chai\lib\chai\utils\addProperty.js:35:29) | |
at Object.should.exist (C:\tmp\node-kit\node_modules\chai\lib\chai\interface\should.js:52:33) | |
at Context.<anonymous> (C:\tmp\node-kit\test\node-kit.test.js:48:16) | |
at callFn (C:\tmp\node-kit\node_modules\mocha\lib\runnable.js:223:21) | |
at Test.Runnable.run (C:\tmp\node-kit\node_modules\mocha\lib\runnable.js:216:7) | |
at Runner.runTest (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:373:10) | |
at C:\tmp\node-kit\node_modules\mocha\lib\runner.js:451:12 | |
at next (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:298:14) | |
at C:\tmp\node-kit\node_modules\mocha\lib\runner.js:308:7 | |
at next (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:246:23) | |
at Immediate._onImmediate (C:\tmp\node-kit\node_modules\mocha\lib\runner.js:275:5) | |
at processImmediate [as _immediateCallback] (timers.js:374:17) | |
[0m | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment