Skip to content

Commit

Permalink
Enable breakage tests for shescape/stateless (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcornelissen authored Dec 24, 2023
1 parent dc1b14e commit edec774
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"prettier": "3.1.1",
"publint": "0.2.4",
"rollup": "4.9.1",
"shescape-previous": "npm:shescape@2.0.1",
"shescape-previous": "npm:shescape@2.1.0",
"sinon": "17.0.1"
},
"scripts": {
Expand Down
21 changes: 5 additions & 16 deletions test/breakage/stateless.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ import * as fc from "fast-check";
import { arbitrary } from "./_.js";

import * as shescape from "shescape/stateless";
import * as previouscape from "shescape-previous/stateless";

// TODO: import after release 2.1.0. It's currently commented because the API
// has not yet been released.
//import * as previouscape from "shescape-previous/stateless";

// TODO: unskip after release 2.1.0. It's currently skipped because the API has
// not yet been released.
testProp.skip(
testProp(
"shescape.escape",
[fc.anything(), arbitrary.shescapeOptions()],
(t, arg, options) => {
Expand All @@ -40,9 +35,7 @@ testProp.skip(
},
);

// TODO: unskip after release 2.1.0. It's currently skipped because the API has
// not yet been released.
testProp.skip(
testProp(
"shescape.escapeAll",
[
fc.oneof(fc.anything(), fc.array(fc.anything())),
Expand All @@ -69,9 +62,7 @@ testProp.skip(
},
);

// TODO: unskip after release 2.1.0. It's currently skipped because the API has
// not yet been released.
testProp.skip(
testProp(
"shescape.quote",
[fc.anything(), arbitrary.shescapeOptions()],
(t, arg, options) => {
Expand All @@ -95,9 +86,7 @@ testProp.skip(
},
);

// TODO: unskip after release 2.1.0. It's currently skipped because the API has
// not yet been released.
testProp.skip(
testProp(
"shescape.quoteAll",
[
fc.oneof(fc.anything(), fc.array(fc.anything())),
Expand Down

0 comments on commit edec774

Please sign in to comment.