Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit d646340

Browse files
committed
fix: naming update for incorrect cases
1 parent 18730f2 commit d646340

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/acceptance/import-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module('Acceptance | import', function(hooks) {
99
await visit('/');
1010
assert.equal(find('.global-button').innerText, "I'm a globally referenced button");
1111
assert.equal(find('.local-button').innerText, "I'm a locally referenced button");
12-
assert.equal(find('[data-test-name="dirtyNamedGlobal"]').innerText, 'ember-template-component-import: Warning! "dirtyNamedGlobal" is not allowed as Variable name for Template import');
13-
assert.equal(find('[data-test-name="dirtyNamedLocal"]').innerText, 'ember-template-component-import: Warning! "dirtyNamedLocal" is not allowed as Variable name for Template import');
12+
assert.equal(find('[data-test-name="incorrectlyCamelCasedAbsoluteImport"]').innerText, 'ember-template-component-import: Warning! "incorrectlyCamelCasedAbsoluteImport" is not allowed as Variable name for Template import');
13+
assert.equal(find('[data-test-name="incorrectlyCamelCasedRelativeImport"]').innerText, 'ember-template-component-import: Warning! "incorrectlyCamelCasedRelativeImport" is not allowed as Variable name for Template import');
1414
assert.equal(find('[data-test-name="Pseudo_Valid_Global"]').innerText, 'ember-template-component-import: Warning! "Pseudo_Valid_Global" is not allowed as Variable name for Template import');
1515
assert.equal(find('[data-test-name="Pseudo_Valid_Local"]').innerText, 'ember-template-component-import: Warning! "Pseudo_Valid_Local" is not allowed as Variable name for Template import');
1616
assert.equal(findAll('[data-test-global-warn]').length, 4);
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{{import Button from "ui/button"}}
22
{{import LocalButton from "./button"}}
3-
{{import dirtyNamedGlobal from "ui/button"}}
4-
{{import dirtyNamedLocal from "./button"}}
3+
{{import incorrectlyCamelCasedAbsoluteImport from "ui/button"}}
4+
{{import incorrectlyCamelCasedRelativeImport from "./button"}}
55
{{import Pseudo_Valid_Global from "ui/button"}}
66
{{import Pseudo_Valid_Local from "./button"}}
77

88
<Button>I'm a globally referenced button</Button>
99
<LocalButton>I'm a locally referenced button</LocalButton>
10-
<dirtyNamedGlobal>I'm a dirty named global button</dirtyNamedGlobal>
11-
<dirtyNamedLocal>I'm a dirty named global button</dirtyNamedLocal>
10+
<incorrectlyCamelCasedAbsoluteImport>I'm a dirty named global button</incorrectlyCamelCasedAbsoluteImport>
11+
<incorrectlyCamelCasedRelativeImport>I'm a dirty named global button</incorrectlyCamelCasedRelativeImport>
1212
<Pseudo_Valid_Global>I'm a underscored global button</Pseudo_Valid_Global>
1313
<Pseudo_Valid_Local>I'm a underscored local button</Pseudo_Valid_Local>

0 commit comments

Comments
 (0)