Skip to content

Commit 60de0ac

Browse files
committed
Linting
1 parent e53ca56 commit 60de0ac

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/createTag/createTag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function createTag(...rawTransformers) {
9393
if (!Array.isArray(strings)) {
9494
return tag([strings]);
9595
}
96-
96+
9797
if (typeof strings[0] === 'undefined') {
9898
throw TypeError(`input string is undefined: Check your template string.
9999
(e.g. \\4 will throw SyntaxError with 'Octal escape sequences are not allowed')

src/createTag/createTag.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,11 @@ test('invalid template string should throw error message', () => {
303303
const getInitialContext = jest.fn();
304304
const tag = createTag({ getInitialContext });
305305

306-
let actual = ()=> {
306+
let actual = () => {
307307
tag`\4`;
308308
};
309309

310310
expect(actual).toThrow(
311311
`input string is undefined: Check your template string.`,
312312
);
313-
});
313+
});

0 commit comments

Comments
 (0)