Skip to content

Commit b7759dd

Browse files
committed
Linting
1 parent 1ac8d82 commit b7759dd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/stripIndentTransformer/stripIndentTransformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const stripIndentTransformer = (type = 'initial') => {
1212

1313
return {
1414
onEndResult(endResult) {
15-
if (typeof(endResult) === 'undefined') {
15+
if (typeof endResult === 'undefined') {
1616
throw TypeError(`input string is undefined: Check your template string.
1717
(e.g. \\4 will throw SyntaxError with 'Octal escape sequences are not allowed')
1818
`);

src/stripIndentTransformer/stripIndentTransformer.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ test('invalid template string should throw error message with ', () => {
5858
const actual = () => {
5959
stripIndent`
6060
\4
61-
`};
62-
expect(actual).toThrow(`input string is undefined: Check your template string.`);
63-
});
61+
`;
62+
};
63+
expect(actual).toThrow(
64+
`input string is undefined: Check your template string.`,
65+
);
66+
});

0 commit comments

Comments
 (0)