-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apply prettier styles to code generation
- Loading branch information
Daniel Schmidt
committed
May 12, 2018
1 parent
bd10a75
commit a27e2f2
Showing
11 changed files
with
418 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
const { methodNameToSnakeCase } = require("../helpers"); | ||
const { methodNameToSnakeCase } = require('../helpers'); | ||
|
||
describe("helpers", () => { | ||
describe("methodNameToSnakeCase", () => { | ||
it("should not fail with empty string", () => { | ||
expect(() => methodNameToSnakeCase("")).not.toThrow(); | ||
describe('helpers', () => { | ||
describe('methodNameToSnakeCase', () => { | ||
it('should not fail with empty string', () => { | ||
expect(() => methodNameToSnakeCase('')).not.toThrow(); | ||
}); | ||
|
||
it("should return the correct snake case method name", () => { | ||
expect( | ||
methodNameToSnakeCase( | ||
"actionForScrollInDirection:amount:xOriginStartPercentage:yOriginStartPercentage:" | ||
) | ||
).toMatchSnapshot(); | ||
it('should return the correct snake case method name', () => { | ||
expect(methodNameToSnakeCase('actionForScrollInDirection:amount:xOriginStartPercentage:yOriginStartPercentage:')).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.