{"action":"closed","issue":{"url":"https://api.github.com/repos/oddbird/true/issues/64","repository_url":"https://api.github.com/repos/oddbird/true","labels_url":"https://api.github.com/repos/oddbird/true/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/oddbird/true/issues/64/comments","events_url":"https://api.github.com/repos/oddbird/true/issues/64/events","html_url":"https://github.com/oddbird/true/issues/64","id":166984914,"number":64,"title":"Mocha does not terminate","user":{"login":"tristanlins","id":343404,"avatar_url":"https://avatars.githubusercontent.com/u/343404?v=3","gravatar_id":"","url":"https://api.github.com/users/tristanlins","html_url":"https://github.com/tristanlins","followers_url":"https://api.github.com/users/tristanlins/followers","following_url":"https://api.github.com/users/tristanlins/following{/other_user}","gists_url":"https://api.github.com/users/tristanlins/gists{/gist_id}","starred_url":"https://api.github.com/users/tristanlins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristanlins/subscriptions","organizations_url":"https://api.github.com/users/tristanlins/orgs","repos_url":"https://api.github.com/users/tristanlins/repos","events_url":"https://api.github.com/users/tristanlins/events{/privacy}","received_events_url":"https://api.github.com/users/tristanlins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-22T07:18:49Z","updated_at":"2016-07-27T11:05:32Z","closed_at":"2016-07-27T11:05:32Z","body":"I created a test as described here: https://github.com/oddbird/true#usage\r\n\r\nBut when I run \"mocha\" or \"npm test\", the process does not terminate :-(\r\n\r\n```\r\n$ npm test\r\n\r\n> metropolis_base@1.0.0 test /home/lins/workspaces/ionas4-styles/metropolis_base\r\n> mocha\r\n\r\n\r\n\r\n  @function optimize-properties()\r\n    ✓ called without breakpoint values\r\n    ✓ called with values for one breakpoint\r\n    ✓ called with values for multiple breakpoints\r\n    ✓ called with values for mixed breakpoints\r\n\r\n  @mixin breakpoint-config()\r\n    ✓ generates properties without breakpoints.\r\n\r\n\r\n  5 passing (8ms)\r\n\r\n█ \r\n```\r\n\r\nAfter the \"5 passing\" the cursor blinks and mocha does not terminate.\r\nNot sure if this is a mocha or true issue?!\r\n\r\n-----\r\n\r\nHere are my test sources:\r\n\r\n`package.json`\r\n\r\n```json\r\n{\r\n  \"devDependencies\": {\r\n    \"mocha\": \"^2.5.3\",\r\n    \"node-sass\": \"^3.8.0\",\r\n    \"sass-true\": \"^2.1.2\",\r\n  },\r\n  \"scripts\": {\r\n    \"test\": \"mocha\"\r\n  },\r\n}\r\n```\r\n\r\n`test/test_sass.js`\r\n\r\n```js\r\nvar path = require('path');\r\nvar winston = require('winston');\r\nvar sassTrue = require('sass-true');\r\nvar importer = require('./importer.js');\r\n\r\nwinston.level = \"info\";\r\n\r\nsassTrue.runSass({\r\n\tfile: path.join(__dirname, \"test_sass.scss\"),\r\n\timporter: importer\r\n}, describe, it);\r\n```\r\n\r\n`test/test_sass.scss`\r\n\r\n```scss\r\n// Mocha test-lib\r\n@import \"../node_modules/sass-true/sass/true\";\r\n\r\n// Sources\r\n@import \"../css/initial\";\r\n@import \"../node_modules/foundation-sites/scss/global\";\r\n@import \"../css/style\";\r\n\r\n// Tests\r\n@import \"functions/optimize-properties-test\";\r\n@import \"mixins/breakpoint-config-test\";\r\n```\r\n\r\n`test/functions/_optimize-properties-test.scss`\r\n```scss\r\n@include test-module(\"@function optimize-properties()\") {\r\n  @include test(\"called without breakpoint values\") {\r\n    $actual: optimize-properties(( ... ));\r\n\r\n    $expected: ( ... );\r\n\r\n    @include assert-equal($actual, $expected, \"foo\");\r\n  }\r\n\r\n  @include test(\"called with values for one breakpoint\") {\r\n    $actual: optimize-properties(( ... ));\r\n\r\n    $expected: ( ... );\r\n\r\n    @include assert-equal($actual, $expected, \"foo\");\r\n  }\r\n\r\n  @include test(\"called with values for multiple breakpoints\") {\r\n    $actual: optimize-properties(( ... ));\r\n\r\n    $expected: ( ... );\r\n\r\n    @include assert-equal($actual, $expected, \"foo\");\r\n  }\r\n\r\n  @include test(\"called with values for mixed breakpoints\") {\r\n    $actual: optimize-properties(( ... ));\r\n\r\n    $expected: ( ... );\r\n\r\n    @include assert-equal($actual, $expected, \"foo\");\r\n  }\r\n}\r\n```\r\n\r\n`test/functions/_breakpoint-config-test.scss`\r\n```scss\r\n@include test-module('@mixin breakpoint-config()') {\r\n  @include test('generates properties without breakpoints.') {\r\n    @include assert('foo') {\r\n      @include output {\r\n        @include breakpoint-config(( ... ));\r\n      }\r\n\r\n      @include expect { ... }\r\n    }\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"tristanlins"}}