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.
' assert.ok(false, \'templates/application.hbs should pass TemplateLint.\\n\\n'+
59
-
'block-indentation: 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. (templates/application @ L5:C9): \\n'+
60
-
'`<div>\\n <p>\\n </p>\\n </div>`\\n'+
61
-
'block-indentation: 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. (templates/application @ L4:C5): \\n'+
62
-
'`<p>\\n </p>`\\n'+
63
-
'html-comments: HTML comment detected (templates/application): \\n'+
64
-
'`<!-- silly html comments -->`\');'
65
-
),
66
-
'});\n'
67
-
].join('\n'));
53
+
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 -:- error HTML comment detected html-comments\\n');\n});\n");
68
54
}));
69
55
70
56
it('generates a Mocha test file if "testGenerator: mocha" is provided',co.wrap(function*(){
' var error = new chai.AssertionError(\'templates/application.hbs should pass TemplateLint.\\n\\n'+
92
-
'block-indentation: 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. (templates/application @ L5:C9): \\n'+
93
-
'`<div>\\n <p>\\n </p>\\n </div>`\\n'+
94
-
'block-indentation: 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. (templates/application @ L4:C5): \\n'+
95
-
'`<p>\\n </p>`\\n'+
96
-
'html-comments: HTML comment detected (templates/application): \\n'+
97
-
'`<!-- silly html comments -->`\');'
98
-
),
99
-
' error.stack = undefined;',
100
-
' throw error;',
101
-
' });',
102
-
'});\n'
103
-
].join('\n'));
72
+
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 -:- error HTML comment detected html-comments\\n');\n error.stack = undefined;\n throw error;\n });\n});\n");
104
73
}));
105
74
106
75
it('generates a QUnit test file if "testGenerator: qunit" and "groupName: foo" are provided',co.wrap(function*(){
' assert.ok(false, \'templates/application.hbs should pass TemplateLint.\\n\\n'+
131
-
'block-indentation: 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. (templates/application @ L5:C9): \\n'+
132
-
'`<div>\\n <p>\\n </p>\\n </div>`\\n'+
133
-
'block-indentation: 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. (templates/application @ L4:C5): \\n'+
134
-
'`<p>\\n </p>`\\n'+
135
-
'html-comments: HTML comment detected (templates/application): \\n'+
136
-
'`<!-- silly html comments -->`\');'
137
-
),
138
-
'});'
139
-
].join('\n'));
93
+
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 -:- error HTML comment detected html-comments\\n');\n});");
140
94
}));
141
95
142
96
it('generates a Mocha test file if "testGenerator: mocha" and "groupName: foo" are provided',co.wrap(function*(){
' var error = new chai.AssertionError(\'templates/application.hbs should pass TemplateLint.\\n\\n'+
165
-
'block-indentation: 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. (templates/application @ L5:C9): \\n'+
166
-
'`<div>\\n <p>\\n </p>\\n </div>`\\n'+
167
-
'block-indentation: 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. (templates/application @ L4:C5): \\n'+
168
-
'`<p>\\n </p>`\\n'+
169
-
'html-comments: HTML comment detected (templates/application): \\n'+
170
-
'`<!-- silly html comments -->`\');'
171
-
),
172
-
' error.stack = undefined;',
173
-
' throw error;',
174
-
' });',
175
-
'',
176
-
'});'
177
-
].join('\n'));
112
+
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 -:- error HTML comment detected html-comments\\n');\n error.stack = undefined;\n throw error;\n });\n\n});");
178
113
}));
179
114
180
115
it('generates empty test files if no "generateTestFile" option is provided',co.wrap(function*(){
0 commit comments