diff --git a/stryker.integration.config.js b/stryker.integration.config.js index f7a8e0834..8e4714b47 100644 --- a/stryker.integration.config.js +++ b/stryker.integration.config.js @@ -3,7 +3,7 @@ export default { coverageAnalysis: "perTest", inPlace: false, - mutate: ["index.js"], + mutate: ["index.js", "testing.js"], testRunner: "tap", tap: { testFiles: ["test/integration/**/*.test.js"], diff --git a/test/integration/testing/commonjs.test.js b/test/integration/testing/commonjs.test.js index ae659e1b7..5e09d5ba3 100644 --- a/test/integration/testing/commonjs.test.js +++ b/test/integration/testing/commonjs.test.js @@ -1,6 +1,6 @@ /** * @overview Contains integration tests for the CommonJS version of the testing - * implementation of Shescape. + * utilities provided with Shescape. * @license MIT */ diff --git a/test/integration/testing/functional.test.js b/test/integration/testing/functional.test.js index 45c79cf80..b3cd09fce 100644 --- a/test/integration/testing/functional.test.js +++ b/test/integration/testing/functional.test.js @@ -1,16 +1,27 @@ /** - * @overview Contains integration tests for the testing implementation of + * @overview Contains integration tests for the testing utilities provided with * Shescape. * @license MIT */ import { testProp } from "@fast-check/ava"; +import test from "ava"; import * as fc from "fast-check"; import { arbitrary } from "../_.js"; import { Shescape } from "shescape"; -import { Shescape as Stubscape } from "shescape/testing"; +import { injectionStrings, Shescape as Stubscape } from "shescape/testing"; + +test("injection strings", (t) => { + t.true(Array.isArray(injectionStrings)); + t.true(injectionStrings.length > 0); + + for (const injectionString of injectionStrings) { + t.is(typeof injectionString, "string"); + t.true(injectionString.length > 0); + } +}); testProp( "escape (stubscape ~ shescape)", diff --git a/test/unit/testing/injection-strings.test.js b/test/unit/testing/injection-strings.test.js deleted file mode 100644 index 85d1b926b..000000000 --- a/test/unit/testing/injection-strings.test.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @overview Contains unit tests for the injection strings test helper. - * @license MIT - */ - -import test from "ava"; - -import { injectionStrings } from "../../../testing.js"; - -test("types", (t) => { - for (const injectionString of injectionStrings) { - t.is(typeof injectionString, "string"); - } -});