Skip to content

Commit 678e931

Browse files
authored
Updated test fixtures (#12)
* chore: Allowed logging * chore: Used magic import paths in input fixtures (ember-container-query-customizations) * chore: Used magic import paths in input fixtures (ember-container-query-typescript) * chore: Added test fixture (ember-container-query-glint) * chore: Removed glint from ember-container-query-typescript --------- Co-authored-by: ijlee2 <[email protected]>
1 parent 0cac1f2 commit 678e931

File tree

578 files changed

+38613
-502
lines changed

Some content is hidden

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

578 files changed

+38613
-502
lines changed

codemod-test-fixture.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
# Choice a. Run the codemod without the optional arguments.
1717
#
18-
# ./codemod-test-fixture.sh ember-container-query-typescript
18+
# ./codemod-test-fixture.sh ember-container-query-glint
1919
#
2020
# Choice b. Run the codemod with the optional arguments. (For named arguments,
2121
# do not include `=` between the flag and the value. Positional arguments must
@@ -40,7 +40,7 @@ FIXTURE=${@:$OPTIND:1}
4040

4141
if [ ! $FIXTURE ]
4242
then
43-
echo "ERROR: Please specify the fixture name (e.g. ember-container-query-typescript).\n"
43+
echo "ERROR: Please specify the fixture name (e.g. ember-container-query-glint).\n"
4444
exit 1
4545
elif [ ! -d "tests/fixtures/$FIXTURE/input" ]
4646
then
@@ -57,4 +57,4 @@ cp -r "tests/fixtures/$FIXTURE/input" "tests/fixtures/$FIXTURE/output"
5757
--test-app-location=$TEST_APP_LOCATION \
5858
--test-app-name=$TEST_APP_NAME
5959

60-
# echo "SUCCESS: Updated the output of $FIXTURE.\n"
60+
echo "SUCCESS: Updated the output of $FIXTURE.\n"

codemod-test-fixtures.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#---------
1414

1515
./codemod-test-fixture.sh -a "packages/ember-container-query" -t "demo-app" -T "demo-app-for-ember-container-query" ember-container-query-customizations
16+
./codemod-test-fixture.sh ember-container-query-glint
1617
./codemod-test-fixture.sh ember-container-query-javascript
1718
./codemod-test-fixture.sh ember-container-query-typescript
1819
./codemod-test-fixture.sh -a "packages/new-v1-addon" -t "demo-app" -T "demo-app-for-new-v1-addon" new-v1-addon-customizations

create-test-fixture.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#
2020
# Choice a. Keep most of the source code.
2121
#
22-
# ./create-test-fixture.sh "../../Desktop/ember-container-query" ember-container-query-typescript
22+
# ./create-test-fixture.sh "../../Desktop/ember-container-query" ember-container-query-glint
2323
#
2424
# Choice b. Empty every file.
2525
#
26-
# ./create-test-fixture.sh "../../Desktop/ember-container-query" ember-container-query-typescript true
26+
# ./create-test-fixture.sh "../../Desktop/ember-container-query" ember-container-query-glint true
2727
#
2828
#---------
2929

tests/fixtures/ember-container-query-customizations/input/addon/components/container-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {
77
Features,
88
IndexSignatureParameter,
99
QueryResults,
10-
} from '../modifiers/container-query';
10+
} from 'ember-container-query/modifiers/container-query';
1111

1212
interface ContainerQueryComponentSignature<T extends IndexSignatureParameter> {
1313
Args: {

tests/fixtures/ember-container-query-customizations/input/addon/helpers/aspect-ratio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { helper } from '@ember/component/helper';
22

3-
import type { Metadata } from '../modifiers/container-query';
3+
import type { Metadata } from 'ember-container-query/modifiers/container-query';
44

55
interface AspectRatioHelperSignature {
66
Args: {

tests/fixtures/ember-container-query-customizations/input/addon/helpers/cq-aspect-ratio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { deprecate } from '@ember/debug';
22

3-
import AspectRatioHelper from '../helpers/aspect-ratio';
3+
import AspectRatioHelper from 'ember-container-query/helpers/aspect-ratio';
44

55
deprecate(
66
'The {{cq-aspect-ratio}} helper has been renamed to {{aspect-ratio}}. Please update the helper name in your template.',

tests/fixtures/ember-container-query-customizations/input/addon/helpers/cq-height.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { deprecate } from '@ember/debug';
22

3-
import HeightHelper from '../helpers/height';
3+
import HeightHelper from 'ember-container-query/helpers/height';
44

55
deprecate(
66
'The {{cq-height}} helper has been renamed to {{height}}. Please update the helper name in your template.',

tests/fixtures/ember-container-query-customizations/input/addon/helpers/cq-width.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { deprecate } from '@ember/debug';
22

3-
import WidthHelper from '../helpers/width';
3+
import WidthHelper from 'ember-container-query/helpers/width';
44

55
deprecate(
66
'The {{cq-width}} helper has been renamed to {{width}}. Please update the helper name in your template.',

tests/fixtures/ember-container-query-customizations/input/addon/helpers/height.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { helper } from '@ember/component/helper';
22

3-
import type { Metadata } from '../modifiers/container-query';
3+
import type { Metadata } from 'ember-container-query/modifiers/container-query';
44

55
interface HeightHelperSignature {
66
Args: {

tests/fixtures/ember-container-query-customizations/input/addon/helpers/width.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { helper } from '@ember/component/helper';
22

3-
import type { Metadata } from '../modifiers/container-query';
3+
import type { Metadata } from 'ember-container-query/modifiers/container-query';
44

55
interface WidthHelperSignature {
66
Args: {

0 commit comments

Comments
 (0)