Skip to content

Commit 4c93333

Browse files
committed
Remove commented test cases ported from ember-template-lint in various template rules
1 parent 02680e5 commit 4c93333

111 files changed

Lines changed: 0 additions & 203 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/lib/rules/template-attribute-order.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ruleTester.run('template-attribute-order', rule, {
1616
// Arguments before attributes (default order)
1717
'<template><MyComponent @arg="val" class="foo" /></template>',
1818

19-
// Test cases ported from ember-template-lint
2019
'<template><MyComponent @a="1" {{on "change" this.click}} ...attributes /></template>',
2120
'<template><MyComponent @name="1" bar="baz" {{did-render this.someAction}} ...attributes aria-role="button" /></template>',
2221
'<template><MyComponent @name="1" aria-role="button" /></template>',
@@ -64,7 +63,6 @@ ruleTester.run('template-attribute-order', rule, {
6463
errors: [{ messageId: 'notAlphabetized' }],
6564
},
6665

67-
// Test cases ported from ember-template-lint
6866
{
6967
code: '<template><div {{in-viewport onEnter=this.loadMore viewportSpy=true}} {{did-update this.loadMore this.activeTab}}></div></template>',
7068
output: null,

tests/lib/rules/template-builtin-component-arguments.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ ruleTester.run('template-builtin-component-arguments', rule, {
1313
'<template><Input @type="checkbox" @checked={{true}} /></template>',
1414
'<template><Textarea @value="Tomster" /></template>',
1515

16-
// Test cases ported from ember-template-lint
1716
'<template><Input/></template>',
1817
],
1918
invalid: [

tests/lib/rules/template-deprecated-inline-view-helper.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ ruleTester.run('template-deprecated-inline-view-helper', rule, {
1010
valid: [
1111
'<template><MyComponent /></template>',
1212
'<template>{{view}}</template>',
13-
// Test cases ported from ember-template-lint
1413
'<template>{{great-fishsticks}}</template>',
1514
'<template>{{input placeholder=(t "email") value=email}}</template>',
1615
'<template>{{title "CrossCheck Web" prepend=true separator=" | "}}</template>',
@@ -33,7 +32,6 @@ ruleTester.run('template-deprecated-inline-view-helper', rule, {
3332
errors: [{ messageId: 'deprecated' }],
3433
},
3534

36-
// Test cases ported from ember-template-lint
3735
{
3836
code: "<template>{{view 'awful-fishsticks'}}</template>",
3937
output: null,

tests/lib/rules/template-deprecated-render-helper.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ ruleTester.run('template-deprecated-render-helper', rule, {
1010
valid: [
1111
'<template><MyComponent /></template>',
1212
'<template>{{this.render}}</template>',
13-
// Test cases ported from ember-template-lint
1413
'<template>{{valid-compoennt}}</template>',
1514
'<template>{{input placeholder=(t "email") value=email}}</template>',
1615
'<template>{{title "CrossCheck Web" prepent=true separator=" | "}}</template>',
@@ -28,7 +27,6 @@ ruleTester.run('template-deprecated-render-helper', rule, {
2827
errors: [{ messageId: 'deprecated' }],
2928
},
3029

31-
// Test cases ported from ember-template-lint
3230
{
3331
code: "<template>{{render 'ken-griffey'}}</template>",
3432
output: null,

tests/lib/rules/template-link-href-attributes.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ruleTester.run('template-link-href-attributes', rule, {
1212
'<template><a href="https://example.com">External</a></template>',
1313
'<template><button>Click me</button></template>',
1414

15-
// Test cases ported from ember-template-lint
1615
'<template><a href=""></a></template>',
1716
'<template><a href="#"></a></template>',
1817
'<template><a href="javascript:;"></a></template>',
@@ -38,7 +37,6 @@ ruleTester.run('template-link-href-attributes', rule, {
3837
errors: [{ messageId: 'missingHref' }],
3938
},
4039

41-
// Test cases ported from ember-template-lint
4240
{
4341
code: '<template><a></a></template>',
4442
output: null,

tests/lib/rules/template-link-rel-noopener.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const ruleTester = new RuleTester({
88
ruleTester.run('template-link-rel-noopener', rule, {
99
valid: [
1010
'<template><a href="/" target="_blank" rel="noopener noreferrer">Link</a></template>',
11-
// Test cases ported from ember-template-lint
1211
'<template><a href="/some/where"></a></template>',
1312
'<template><a href="/some/where" target="_self"></a></template>',
1413
'<template><a href="/some/where" target="_blank" rel="noopener noreferrer"></a></template>',
@@ -30,7 +29,6 @@ ruleTester.run('template-link-rel-noopener', rule, {
3029
errors: [{ messageId: 'missingRel' }],
3130
},
3231

33-
// Test cases ported from ember-template-lint
3432
{
3533
code: '<template><a href="/some/where" target="_blank"></a></template>',
3634
output: '<template><a href="/some/where" target="_blank" rel="noopener noreferrer"></a></template>',

tests/lib/rules/template-modifier-name-case.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ ruleTester.run('template-modifier-name-case', rule, {
1414
'<template><div {{(modifier "did-insert")}}></div></template>',
1515
'<template><div {{(modifier "on-click")}}></div></template>',
1616

17-
// Test cases ported from ember-template-lint
1817
'<template><div {{did-insert "something"}}></div></template>',
1918
'<template><div {{did-insert action=something}}></div></template>',
2019
'<template><button {{on "click" somethingAmazing}}></button></template>',
@@ -68,7 +67,6 @@ ruleTester.run('template-modifier-name-case', rule, {
6867
],
6968
},
7069

71-
// Test cases ported from ember-template-lint
7270
{
7371
code: '<template><div class="monkey" {{didInsert "something" with="somethingElse"}}></div></template>',
7472
output:

tests/lib/rules/template-no-abstract-roles.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ ruleTester.run('template-no-abstract-roles', rule, {
1010
valid: [
1111
'<template><div role="button"></div></template>',
1212
'<template><div></div></template>',
13-
// Test cases ported from ember-template-lint
1413
'<template><img alt="" role="none" src="zoey.jpg"></template>',
1514
'<template><img alt="" role="presentation" src="zoey.jpg"></template>',
1615
],
@@ -26,7 +25,6 @@ ruleTester.run('template-no-abstract-roles', rule, {
2625
errors: [{ messageId: 'abstractRole' }],
2726
},
2827

29-
// Test cases ported from ember-template-lint
3028
{
3129
code: '<template><img role="command"></template>',
3230
output: null,

tests/lib/rules/template-no-accesskey-attribute.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ ruleTester.run('template-no-accesskey-attribute', rule, {
2323
<div class="button">Content</div>
2424
</template>`,
2525

26-
// Test cases ported from ember-template-lint
2726
'<template><div></div></template>',
2827
],
2928

@@ -57,7 +56,6 @@ ruleTester.run('template-no-accesskey-attribute', rule, {
5756
],
5857
},
5958

60-
// Test cases ported from ember-template-lint
6159
{
6260
code: '<template><button accesskey="n"></button></template>',
6361
output: '<template><button></button></template>',

tests/lib/rules/template-no-action-modifiers.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ ruleTester.run('template-no-action-modifiers', rule, {
1515
'<template>{{this.action}}</template>',
1616
'<template>{{@action}}</template>',
1717

18-
// Test cases ported from ember-template-lint
1918
'<template><button onclick={{action "foo"}}></button></template>',
2019
'<template><a href="#" onclick={{action "foo"}}></a></template>',
2120
'<template><div action></div></template>',
@@ -55,7 +54,6 @@ ruleTester.run('template-no-action-modifiers', rule, {
5554
],
5655
},
5756

58-
// Test cases ported from ember-template-lint
5957
{
6058
code: '<template><div {{action this.foo}}></div></template>',
6159
output: null,

0 commit comments

Comments
 (0)