Skip to content

Commit

Permalink
Fix parseJSON function name and test.js eslint-env
Browse files Browse the repository at this point in the history
  • Loading branch information
marnusw committed Oct 21, 2019
1 parent f964e50 commit 53ae388
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/parseJSON/index.js
Expand Up @@ -30,7 +30,7 @@ import toDate from '../toDate/index.js'
* @returns {Date} the parsed date in the local time zone
* @throws {TypeError} 1 argument required
*/
export default function index(argument) {
export default function parseJSON(argument) {
if (arguments.length < 1) {
throw new TypeError(
'1 argument required, but only ' + arguments.length + ' present'
Expand Down
3 changes: 3 additions & 0 deletions src/parseJSON/test.js
@@ -1,3 +1,6 @@
// @flow
/* eslint-env mocha */

import assert from 'power-assert'
import parseJSON from '.'

Expand Down

0 comments on commit 53ae388

Please sign in to comment.