Skip to content

Commit 66081ca

Browse files
committed
feat(migrate): run tests
1 parent 7f81d60 commit 66081ca

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

packages/sync-actions/test/__snapshots__/product-types-sync-attribute-hints.spec.js.snap renamed to packages/sync-actions/test/__snapshots__/product-types-sync-attribute-hints.spec.ts.snap

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`product type hints attribute enum values with previous with changes when is localized should match snapshot 1`] = `
4-
Array [
5-
Object {
4+
[
5+
{
66
"action": "changeEnumKey",
77
"attributeName": "attribute-name",
88
"key": "enum-key",
99
"newKey": "next-key",
1010
},
11-
Object {
11+
{
1212
"action": "changeLocalizedEnumValueLabel",
1313
"attributeName": "attribute-name",
14-
"newValue": Object {
14+
"newValue": {
1515
"key": "next-key",
1616
"label": "next-label",
1717
},
@@ -20,17 +20,17 @@ Array [
2020
`;
2121

2222
exports[`product type hints attribute enum values with previous with changes when is not localized should match snapshot 1`] = `
23-
Array [
24-
Object {
23+
[
24+
{
2525
"action": "changeEnumKey",
2626
"attributeName": "attribute-name",
2727
"key": "enum-key",
2828
"newKey": "next-key",
2929
},
30-
Object {
30+
{
3131
"action": "changePlainEnumValueLabel",
3232
"attributeName": "attribute-name",
33-
"newValue": Object {
33+
"newValue": {
3434
"key": "next-key",
3535
"label": "next-label",
3636
},
@@ -39,33 +39,33 @@ Array [
3939
`;
4040

4141
exports[`product type hints attribute enum values with previous with changes when removing, adding, and editing (in a single batch of actions) should match snapshot 1`] = `
42-
Array [
43-
Object {
42+
[
43+
{
4444
"action": "removeEnumValues",
4545
"attributeName": "attribute-enum-with-2-enum-values-to-remove",
46-
"keys": Array [
46+
"keys": [
4747
"enum-key-1",
4848
"enum-key-2",
4949
],
5050
},
51-
Object {
51+
{
5252
"action": "changeEnumKey",
5353
"attributeName": "attribute-name",
5454
"key": "enum-key",
5555
"newKey": "next-enum-draft-item",
5656
},
57-
Object {
57+
{
5858
"action": "changePlainEnumValueLabel",
5959
"attributeName": "attribute-name",
60-
"newValue": Object {
60+
"newValue": {
6161
"key": "next-enum-draft-item",
6262
"label": undefined,
6363
},
6464
},
65-
Object {
65+
{
6666
"action": "addPlainEnumValue",
6767
"attributeName": "attribute-name",
68-
"value": Object {
68+
"value": {
6969
"key": "new-enum-draft-item",
7070
"label": "new-enum-draft-item",
7171
},
@@ -74,11 +74,11 @@ Array [
7474
`;
7575

7676
exports[`product type hints attribute enum values without previous should match snapshot 1`] = `
77-
Array [
78-
Object {
77+
[
78+
{
7979
"action": "addPlainEnumValue",
8080
"attributeName": "attribute-name",
81-
"value": Object {
81+
"value": {
8282
"key": "enum-key",
8383
"label": "enum-label",
8484
},
@@ -87,11 +87,11 @@ Array [
8787
`;
8888

8989
exports[`product type hints attribute enum values without previous when is localized should match snapshot 1`] = `
90-
Array [
91-
Object {
90+
[
91+
{
9292
"action": "addLocalizedEnumValue",
9393
"attributeName": "attribute-name",
94-
"value": Object {
94+
"value": {
9595
"key": "enum-key",
9696
"label": "enum-label",
9797
},
@@ -100,67 +100,67 @@ Array [
100100
`;
101101

102102
exports[`product type hints attribute hints with previous with next with changes should match snapshot 1`] = `
103-
Array [
104-
Object {
103+
[
104+
{
105105
"action": "changeLabel",
106106
"attributeName": "attribute-name",
107-
"label": Object {
107+
"label": {
108108
"en": "next-attribute-label",
109109
},
110110
},
111-
Object {
111+
{
112112
"action": "setInputTip",
113113
"attributeName": "attribute-name",
114-
"inputTip": Object {
114+
"inputTip": {
115115
"en": "next-input-tip",
116116
},
117117
},
118-
Object {
118+
{
119119
"action": "changeInputHint",
120120
"attributeName": "attribute-name",
121121
"newValue": "MultiLine",
122122
},
123-
Object {
123+
{
124124
"action": "changeIsSearchable",
125125
"attributeName": "attribute-name",
126126
"isSearchable": true,
127127
},
128-
Object {
128+
{
129129
"action": "changeAttributeConstraint",
130130
"attributeName": "attribute-name",
131131
"newValue": "None",
132132
},
133133
]
134134
`;
135135

136-
exports[`product type hints attribute hints with previous with next with no changes should match snapshot 1`] = `Array []`;
136+
exports[`product type hints attribute hints with previous with next with no changes should match snapshot 1`] = `[]`;
137137

138138
exports[`product type hints attribute hints with previous without next should match snapshot 1`] = `
139-
Array [
140-
Object {
139+
[
140+
{
141141
"action": "removeAttributeDefinition",
142142
"name": "attribute-name",
143143
},
144144
]
145145
`;
146146

147147
exports[`product type hints attribute hints without previous should match snapshot 1`] = `
148-
Array [
149-
Object {
148+
[
149+
{
150150
"action": "addAttributeDefinition",
151-
"attribute": Object {
151+
"attribute": {
152152
"attributeConstraint": "SameForAll",
153153
"inputHint": "SingleLine",
154-
"inputTip": Object {
154+
"inputTip": {
155155
"en": "input-hint",
156156
},
157157
"isRequired": false,
158158
"isSearchable": false,
159-
"label": Object {
159+
"label": {
160160
"en": "attribute-label",
161161
},
162162
"name": "attribute-name",
163-
"type": Object {
163+
"type": {
164164
"name": "text",
165165
},
166166
},

0 commit comments

Comments
 (0)