Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL: Renaming Types/Inputs #5883

Merged
merged 16 commits into from Aug 15, 2019

Some generated files are not rendered by default. Learn more.

@@ -45,6 +45,7 @@
"node-rsa": "1.0.5",
"parse": "2.6.0",
"pg-promise": "9.0.1",
"pluralize": "^8.0.0",
"redis": "2.8.0",
"semver": "6.3.0",
"subscriptions-transport-ws": "0.9.16",
@@ -0,0 +1,11 @@
const {
transformClassNameToGraphQL,
} = require('../lib/GraphQL/transformers/className');

describe('transformClassNameToGraphQL', () => {
it('should remove starting _ and tansform first letter to upper case', () => {
expect(
['_User', '_user', 'User', 'user'].map(transformClassNameToGraphQL)
).toEqual(['User', 'User', 'User', 'User']);
});
});
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.