Skip to content

Broken code sample in README #4

@EmNudge

Description

@EmNudge

The first code sample in the readme doesn't appear to be valid JS.

import cronometro from 'cronometro'

const results = cronometro({
  await test1: function () {
    // Do something
  },
  await test2: function () {
    // Do something else
  }
})

Perhaps you meant something like

import cronometro from 'cronometro'

const results = cronometro({
  test1: async function () {
    // Do something
  },
  test2: async function () {
    // Do something else
  }
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions