You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
expect(contents).to.equal("QUnit.module('TemplateLint | templates/application.hbs');\nQUnit.test('should pass TemplateLint', function(assert) {\n assert.expect(1);\n assert.ok(false, 'templates/application.hbs should pass TemplateLint.\\n\\ntemplates/application.hbs\\n 5:9 error Incorrect indentation for `div` beginning at L2:C0. Expected `</div>` ending at L5:C9 to be at an indentation of 0 but was found at 3. block-indentation\\n 4:5 error Incorrect indentation for `p` beginning at L3:C2. Expected `</p>` ending at L4:C5 to be at an indentation of 2 but was found at 1. block-indentation\\n 1:0 error HTML comment detected no-html-comments\\n');\n});\n");
expect(contents).to.equal("describe('TemplateLint | templates/application.hbs', function() {\n it('should pass TemplateLint', function() {\n // test failed\n var error = new chai.AssertionError('templates/application.hbs should pass TemplateLint.\\n\\ntemplates/application.hbs\\n 5:9 error Incorrect indentation for `div` beginning at L2:C0. Expected `</div>` ending at L5:C9 to be at an indentation of 0 but was found at 3. block-indentation\\n 4:5 error Incorrect indentation for `p` beginning at L3:C2. Expected `</p>` ending at L4:C5 to be at an indentation of 2 but was found at 1. block-indentation\\n 1:0 error HTML comment detected no-html-comments\\n');\n error.stack = undefined;\n throw error;\n });\n});\n");
var error = new chai.AssertionError('templates/application.hbs should pass TemplateLint.\\n\\ntemplates/application.hbs\\n 1:0 error HTML comment detected no-html-comments\\n');
81
+
error.stack = undefined;
82
+
throw error;
83
+
});
84
+
});
85
+
`);
73
86
}));
74
87
75
88
it('generates a QUnit test file if "testGenerator: qunit" and "groupName: foo" are provided',co.wrap(function*(){
expect(contents.trim()).to.equal("QUnit.module('TemplateLint | foo');\n\nQUnit.test('templates/application.hbs', function(assert) {\n assert.expect(1);\n assert.ok(false, 'templates/application.hbs should pass TemplateLint.\\n\\ntemplates/application.hbs\\n 5:9 error Incorrect indentation for `div` beginning at L2:C0. Expected `</div>` ending at L5:C9 to be at an indentation of 0 but was found at 3. block-indentation\\n 4:5 error Incorrect indentation for `p` beginning at L3:C2. Expected `</p>` ending at L4:C5 to be at an indentation of 2 but was found at 1. block-indentation\\n 1:0 error HTML comment detected no-html-comments\\n');\n});");
expect(contents.trim()).to.equal("describe('TemplateLint | foo', function() {\n\n it('templates/application.hbs', function() {\n // test failed\n var error = new chai.AssertionError('templates/application.hbs should pass TemplateLint.\\n\\ntemplates/application.hbs\\n 5:9 error Incorrect indentation for `div` beginning at L2:C0. Expected `</div>` ending at L5:C9 to be at an indentation of 0 but was found at 3. block-indentation\\n 4:5 error Incorrect indentation for `p` beginning at L3:C2. Expected `</p>` ending at L4:C5 to be at an indentation of 2 but was found at 1. block-indentation\\n 1:0 error HTML comment detected no-html-comments\\n');\n error.stack = undefined;\n throw error;\n });\n\n});");
var error = new chai.AssertionError('templates/application.hbs should pass TemplateLint.\\n\\ntemplates/application.hbs\\n 1:0 error HTML comment detected no-html-comments\\n');
137
+
error.stack = undefined;
138
+
throw error;
139
+
});
140
+
141
+
});`);
113
142
}));
114
143
115
144
it('generates empty test files if no "generateTestFile" option is provided',co.wrap(function*(){
0 commit comments