Skip to content

Commit

Permalink
Fix tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 27, 2024
1 parent f92220f commit 8597583
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/helpers/main.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// eslint-disable-next-line ava/no-ignored-test-files
import test from 'ava'
import isCI from 'is-ci'
import { each } from 'test-each'

import { ALL_STRINGS } from './strings.test.js'

import stringByteLength from 'string-byte-length'

const testFunction = isCI ? test.serial : test

each(ALL_STRINGS, ({ title }, { string, size }) => {
test(`Should compute the byte length | ${title}`, (t) => {
testFunction(`Should compute the byte length | ${title}`, (t) => {
t.is(stringByteLength(string), size)
})
})

0 comments on commit 8597583

Please sign in to comment.