Skip to content

Commit aea768b

Browse files
committed
use camelCase enum name in mis visitor test
1 parent 7fec50f commit aea768b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/appsync-modelgen-plugin/src/__tests__/visitors/__snapshots__/appsync-model-introspection-visitor.test.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -2972,8 +2972,8 @@ exports[`Model Introspection Visitor Metadata snapshot should generate correct m
29722972
\\"enumVal2\\"
29732973
]
29742974
},
2975-
\\"camel\\": {
2976-
\\"name\\": \\"camel\\",
2975+
\\"camelCase\\": {
2976+
\\"name\\": \\"camelCase\\",
29772977
\\"values\\": [
29782978
\\"bactrian\\",
29792979
\\"dromedary\\"

packages/appsync-modelgen-plugin/src/__tests__/visitors/appsync-model-introspection-visitor.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ describe('Model Introspection Visitor', () => {
115115
interface SimpleInterface {
116116
firstName: String!
117117
}
118-
enum camel {
118+
enum camelCase {
119119
bactrian
120120
dromedary
121121
}
@@ -148,7 +148,7 @@ describe('Model Introspection Visitor', () => {
148148
});
149149

150150
it('should not pascal case enum', () => {
151-
expect((visitor as any).getType('camel')).toEqual({ enum: 'camel' })
151+
expect((visitor as any).getType('camelCase')).toEqual({ enum: 'camelCase' })
152152
})
153153

154154
it('should throw error for unknown type', () => {

0 commit comments

Comments
 (0)