diff --git a/.github/lifeomic-probot.yml b/.github/lifeomic-probot.yml index 20a0b27..505881d 100644 --- a/.github/lifeomic-probot.yml +++ b/.github/lifeomic-probot.yml @@ -1 +1 @@ -enforceSemanticCommits: false +enforceSemanticCommits: true diff --git a/test/index.test.ts b/test/index.test.ts index a576e18..e3f4334 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -4,9 +4,7 @@ import { AttemptOptions, AttemptContext } from '../src'; -function almostEqual (a: number, b: number, tolerance: number) { - return Math.abs(a - b) <= tolerance; -} +const almostEqual = (a: number, b: number, tolerance: number) => Math.abs(a - b) <= tolerance; const DELAY_TOLERANCE = parseInt(process.env.DELAY_TOLERANCE || '', 10) || 100;