Skip to content

Commit 2c1715c

Browse files
authored
Website - Fix incorrect type name and acceptance test comments (#3071)
1 parent 74ae3bc commit 2c1715c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

website/docs/icons/library/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Component from '@glimmer/component';
77
import { action } from '@ember/object';
88
import { restartableTask, timeout } from 'ember-concurrency';
99
import { inject as service } from '@ember/service';
10-
import { AVAILABLE_NAMES } from '@hashicorp/design-system-components/components/hds/icon/index';
10+
import { NAMES } from '@hashicorp/design-system-components/components/hds/icon/index';
1111

1212
import catalog from '@hashicorp/flight-icons/catalog.json';
1313

@@ -19,7 +19,7 @@ export default class Index extends Component {
1919
@service router;
2020

2121
allIcons = catalog.assets
22-
.filter(({ iconName }) => AVAILABLE_NAMES.includes(iconName))
22+
.filter(({ iconName }) => NAMES.includes(iconName))
2323
.map(({ iconName, fileName, size, description, category }) => {
2424
category = category.toLowerCase(); // category names in json begin with uppercase letter
2525

website/tests/acceptance/components/icon-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { visit, currentURL } from '@ember/test-helpers';
88
import { setupApplicationTest } from 'website/tests/helpers';
99
import { a11yAudit } from 'ember-a11y-testing/test-support';
1010

11-
module('Acceptance | components/icon tile', function (hooks) {
11+
module('Acceptance | components/icon', function (hooks) {
1212
setupApplicationTest(hooks);
1313

1414
test('visiting /components/icon', async function (assert) {

website/tests/acceptance/components/icon-tile-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { visit, currentURL } from '@ember/test-helpers';
88
import { setupApplicationTest } from 'website/tests/helpers';
99
import { a11yAudit } from 'ember-a11y-testing/test-support';
1010

11-
module('Acceptance | components/icon tile', function (hooks) {
11+
module('Acceptance | components/icon-tile', function (hooks) {
1212
setupApplicationTest(hooks);
1313

1414
test('visiting /components/icon-tile', async function (assert) {

0 commit comments

Comments
 (0)